The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Dist::Zilla::PluginBundle::Author::MAXHQ::ExtractInlineTests - Extract inline tests from POD sections in the modules

VERSION

version 0.0100021

DESCRIPTION

The code of this Dist::Zilla file gatherer module is taken from https://github.com/moose/moose/blob/master/inc/ExtractInlineTests.pm.

This module scans all files for inline tests in POD sections, like e.g.:

        =begin testing

        use Test::Exception;

        my $list;

        lives_ok {
                $list = My::AddressRange->list_from_range('10.2.3.1', '10.2.3.5')
        } "list_from_range() doesn't die with correct input for a list of IPs";

        dies_ok {
                My::AddressRange->list_from_range('10.2.3.A', '10.2.3.5')
        } "list_from_range() complains about invalid address";

        =end testing

EXTENDS

METHODS

gather_files

Required by role Dist::Zilla::Role::FileGatherer.

Searches for inline test code in POD sections and creates in-memory test files from them.

AUTHOR

Jens Berthold <jens.berthold@jebecs.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Jens Berthold.

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