Dai Okabayashi > Test-NoLoad-0.01 > Test::NoLoad

Download:
Test-NoLoad-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source   Latest Release: Test-NoLoad-0.03

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 /);

DESCRIPTION ^

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

EXPORTED FUNCTIONS ^

check_no_load(@modules)

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: