Commits

Toby Inkster committed 9a06ad7

test suite documentation

Comments (0)

Files changed (7)

 scalar ((C<< $ >>), array (C<< @ >>) and hash (C<< % >>) prefix sigils
 work.
 
+Check that the C<< + >> postfix sigil works, that numbers can default to
+values other than zero, and that an explicit C<isa> works.
+
+Make sure that sigils are just hints, and can be overridden by an explicit
+attribute spec.
+
+Checks that attribute specs can be hashrefs or arrayrefs.
+
 =head1 AUTHOR
 
 Toby Inkster E<lt>tobyink@cpan.orgE<gt>.

t/08alt-constructor.t

 
 Check square-bracket-style constructor.
 
+Also checks constructor called with a hashref (works, but not officially
+supported).
+
+Tests that objects overloading both hash and array are considered to be
+hashrefs by the constructor, not arrayrefs.
+
 =head1 AUTHOR
 
 Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
 	'if constructed with an object that "does" array and hash, hash is preferred',
 );
 
-done_testing();
+done_testing();
+=head1 PURPOSE
+
+Checks that MooX::Struct itself can be instantiated and works as expected.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
+
+=head1 COPYRIGHT AND LICENCE
+
+This software is copyright (c) 2012 by Toby Inkster.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+=cut
+
 use strict;
 use warnings;
 use Test::More;
+=head1 PURPOSE
+
+Tests the output of the "-trace" feature.
+
+Checks that the C<PERL_MOOX_STRUCT_TRACE> environment variable is honoured.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
+
+=head1 COPYRIGHT AND LICENCE
+
+This software is copyright (c) 2012 by Toby Inkster.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+=cut
+
 use strict;
 use warnings;
 
+=head1 PURPOSE
+
+Checks some places where MooX::Struct::Processor is expected to fail.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
+
+=head1 COPYRIGHT AND LICENCE
+
+This software is copyright (c) 2012 by Toby Inkster.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+=cut
+
 use strict;
 use warnings;
 use Test::More;

t/97dataprinter.t

+=head1 PURPOSE
+
+Test Data::Printer support for structs.
+
+Skipped if Data::Printer is not installed.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
+
+=head1 COPYRIGHT AND LICENCE
+
+This software is copyright (c) 2012 by Toby Inkster.
+
+This is free software; you can redistribute it and/or modify it under
+the same terms as the Perl 5 programming language system itself.
+
+=cut
+
 use strict;
 use warnings;
 
+=head1 TEST COVERAGE
+
+As of 0.010, according to L<Devel::Cover> the test coverage for
+L<MooX::Struct> and L<MooX::Struct::Util> is 100%.
+
+=cut
+