Dai Okabayashi > Test-NoLoad-0.03 > Test::NoLoad

Download:
Test-NoLoad-0.03.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.03   Source  

NAME ^

Test::NoLoad - Fail, if the module was loaded

SYNOPSIS ^

    use Test::AllModules;
    use Test::NoLoad;

    BEGIN {
        all_ok(
            search_path => 'MyApp',
            check => sub {
                my $class = shift;
                eval "use $class;1;";
            },
        );
    }

    check_no_load(
        qw/ Class::ISA Pod::Plainer Switch /,
        qr/Acme::.+/,
    );

DESCRIPTION ^

Test::NoLoad export the function `check_no_load`. It will be fail, if the module was loaded.

EXPORTED FUNCTIONS ^

check_no_load(@modules)

load_ok(@modules)

OTHER FUNCTIONS ^

dump_modules

show the list of modules: already loaded them when this function just call.

REPOSITORY ^

Test::NoLoad is hosted on github <http://github.com/bayashi/Test-NoLoad>

AUTHOR ^

Dai Okabayashi <bayashi@cpan.org>

LICENSE ^

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

syntax highlighting: