Steven Haryanto > Test-Rinci-0.08 > Test::Rinci

Download:
Test-Rinci-0.08.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.08   Source  

NAME ^

Test::Rinci - Test Rinci metadata

VERSION ^

This document describes version 0.08 of Test::Rinci (from Perl distribution Test-Rinci), released on 2014-07-18.

SYNOPSIS ^

To check all metadata in a module:

 use Test::Rinci tests=>1;
 metadata_in_module_ok("Foo::Bar", {opt => ...}, $msg);

Alternatively, you can check all metadata in all modules in a distro:

 # save in release-rinci.t, put in distro's t/ subdirectory
 use Test::More;
 plan skip_all => "Not release testing" unless $ENV{RELEASE_TESTING};
 eval "use Test::Rinci";
 plan skip_all => "Test::Rinci required for testing Rinci metadata" if $@;
 metadata_in_all_modules_ok({opt => ...}, $msg);

DESCRIPTION ^

This module performs various checks on a module's Rinci metadata. It is recommended that you include something like release-rinci.t in your distribution if you add metadata to your code. If you use Dist::Zilla to build your distribution, there is Dist::Zilla::Plugin::Test::Rinci to make it easy to do so.

FUNCTIONS ^

All these functions are exported by default.

metadata_in_module_ok($module [, \%opts ] [, $msg])

Load $module, get its metadata, and perform test on all of them. For function metadata, a wrapping to the function is done to see if it can be wrapped.

Available options:

metadata_in_all_modules_ok([ \%opts ] [, $msg])

Look for modules in directory lib (or blib instead, if it exists), and run metadata_in_module_ok() on each of them.

Options are the same as in metadata_in_module_ok().

ACKNOWLEDGEMENTS ^

Some code taken from Test::Pod::Coverage by Andy Lester.

SEE ALSO ^

test-rinci, a command-line interface for metadata_in_all_modules_ok().

Rinci

Perinci::Sub::Wrapper

Dist::Zilla::Plugin::Test::Rinci

HOMEPAGE ^

Please visit the project's homepage at https://metacpan.org/release/Test-Rinci.

SOURCE ^

Source repository is at https://github.com/sharyanto/perl-Test-Rinci.

BUGS ^

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Rinci

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR ^

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: