[libmoox-late-perl] 04/06: document test suite

Intrigeri intrigeri at moszumanska.debian.org
Thu Aug 14 11:13:35 UTC 2014


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to tag 0.005
in repository libmoox-late-perl.

commit d384a563be54723d1beac163cbda40fd8f75fe7f
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date:   Sun Dec 9 21:45:04 2012 +0000

    document test suite
---
 t/01basic.t        | 16 ++++++++++++++++
 t/02inflation.t    | 17 +++++++++++++++++
 t/03invalid_tc.t   | 17 +++++++++++++++++
 t/04arrayofattrs.t | 21 +++++++++++++++++++++
 4 files changed, 71 insertions(+)

diff --git a/t/01basic.t b/t/01basic.t
index 24ae742..dac8a22 100644
--- a/t/01basic.t
+++ b/t/01basic.t
@@ -51,3 +51,19 @@ $o->clear_foo;
 ok( not $o->has_foo );
 
 done_testing;
+
+=head1 PURPOSE
+
+Check that basic usage of MooX::late works.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink at 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.
+
diff --git a/t/02inflation.t b/t/02inflation.t
index 2d88d6c..9dd5488 100644
--- a/t/02inflation.t
+++ b/t/02inflation.t
@@ -25,3 +25,20 @@ eval {
 };
 
 done_testing;
+
+=head1 PURPOSE
+
+Check that our type constraints are correctly inflated to Moose type
+constraints.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink at 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.
+
diff --git a/t/03invalid_tc.t b/t/03invalid_tc.t
index d6dff14..2b0dfde 100644
--- a/t/03invalid_tc.t
+++ b/t/03invalid_tc.t
@@ -26,3 +26,20 @@ warnings_are {
 } [];
 
 done_testing;
+
+=head1 PURPOSE
+
+Check that we get warnings about unrecognisable type constraints, but only
+when a value is actually tested against the constraint.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink at 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.
+
diff --git a/t/04arrayofattrs.t b/t/04arrayofattrs.t
index 2048582..7e3d453 100644
--- a/t/04arrayofattrs.t
+++ b/t/04arrayofattrs.t
@@ -28,3 +28,24 @@ is($o1->bar1, 'bar1');
 is($o1->bar2, 'bar2');
 
 done_testing;
+
+=head1 PURPOSE
+
+Test that this works:
+
+	has \@attributes => (...);
+
+Specifically we test is for C<lazy_build> as that's a kinda interesting
+one.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink at 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.
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmoox-late-perl.git



More information about the Pkg-perl-cvs-commits mailing list