Test::NoLoad - Fail, if the module was loaded
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 /);
Test::NoLoad export the function `check_no_load`. It will be fail, if the module was loaded.
Test::NoLoad is hosted on github <http://github.com/bayashi/Test-NoLoad>
Dai Okabayashi <bayashi@cpan.org>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Test::NoLoad, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::NoLoad
CPAN shell
perl -MCPAN -e shell install Test::NoLoad
For more information on module installation, please visit the detailed CPAN module installation guide.