Commits

Toby Inkster committed bde9493

document test suite

  • Participants
  • Parent commits 277a169

Comments (0)

Files changed (5)

+=head1 PURPOSE
+
+Some basic JSON Path selection tests, including some using C<eval>,
+checking that its disallowed by default but can be switched on using
+the C<< $JSON::Path::Safe >> package variable.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
+
+=head1 COPYRIGHT AND LICENCE
+
+Copyright 2010-2013 Toby Inkster.
+
+This module is tri-licensed. It is available under the X11 (a.k.a. MIT)
+licence; you can also redistribute it and/or modify it under the same
+terms as Perl itself.
+
+=cut
+
 use Test::More tests => 10;
 BEGIN { use_ok('JSON::Path') };
 

File t/02zeroth.t

+=head1 PURPOSE
+
+Check the zeroth array element can be selected.
+
+=head1 SEE ALSO
+
+L<https://rt.cpan.org/Ticket/Display.html?id=66232>.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
+
+=head1 COPYRIGHT AND LICENCE
+
+Copyright 2011-2013 Toby Inkster.
+
+This module is tri-licensed. It is available under the X11 (a.k.a. MIT)
+licence; you can also redistribute it and/or modify it under the same
+terms as Perl itself.
+
+=cut
+
 use Test::More tests => 6;
 BEGIN { use_ok('JSON::Path') };
 

File t/03shortcuts.t

+=head1 PURPOSE
+
+Test C<jpath> and C<jpath1> exported functions.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
+
+=head1 COPYRIGHT AND LICENCE
+
+Copyright 2012-2013 Toby Inkster.
+
+This module is tri-licensed. It is available under the X11 (a.k.a. MIT)
+licence; you can also redistribute it and/or modify it under the same
+terms as Perl itself.
+
+=cut
+
 use Test::More;
 use JSON::Path -all;
 
+=head1 PURPOSE
+
+Test C<jpath_map> exported function.
+
+=head1 AUTHOR
+
+Toby Inkster E<lt>tobyink@cpan.orgE<gt>.
+
+=head1 COPYRIGHT AND LICENCE
+
+Copyright 2012-2013 Toby Inkster.
+
+This module is tri-licensed. It is available under the X11 (a.k.a. MIT)
+licence; you can also redistribute it and/or modify it under the same
+terms as Perl itself.
+
+=cut
+
 use Test::More;
 use JSON::Path -all;
 
 
 Exercise C<< JSON::Path::set >>.
 
+=head1 SEE ALSO
+
+L<https://rt.cpan.org/Ticket/Display.html?id=83249>.
+
 =head1 AUTHOR
 
-m.nacamura at gmail.com
+Mitsuhiro Nakamura
+
+=head1 COPYRIGHT AND LICENCE
+
+Copyright 2013 Mitsuhiro Nakamura.
+
+This module is tri-licensed. It is available under the X11 (a.k.a. MIT)
+licence; you can also redistribute it and/or modify it under the same
+terms as Perl itself.
 
 =cut