Test::Structure - Test for the structure of a package
Version 0.04
Have you ever wished that you could build tests based on the structure of a package, not how a package acts. Ya me either, but I've bumped in to a situation where I needed it.
use Test::Structure tests => 5; require_ok( 'My::Package' ); has_includes( 'My::Package', qw{My::Other::Package Some::Other::Package} ); has_subs( 'My::Package', qw{this that} ); has_commetns( 'My;::Package' ); has_pod( 'My::Package' );
notbenh, <notbenh at cpan.org>
<notbenh at cpan.org>
Please report any bugs or feature requests to bug-test-structure at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Structure. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-test-structure at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Test::Structure
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Structure
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Test-Structure
CPAN Ratings
http://cpanratings.perl.org/d/Test-Structure
Search CPAN
http://search.cpan.org/dist/Test-Structure/
Copyright 2010 notbenh.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Test::Structure, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Structure
CPAN shell
perl -MCPAN -e shell install Test::Structure
For more information on module installation, please visit the detailed CPAN module installation guide.