|
#!/usr/bin/perl
$ENV {TEST_AUTHOR} or plan(
skip_all => 'Author test. Set (export) $ENV{TEST_AUTHOR} to a true value to run.'
);
eval 'use Test::Pod::Coverage 1.04' ;
if ( $EVAL_ERROR ) {
my $msg = 'Test::Pod::Coverage 1.00 required for testing POD' ;
plan skip_all => skip_all => $msg ;
}
my @dirs = ( 'lib' );
if (-d '../t/' ) {
@dirs = ( '../lib' );
}
else {
push @INC , './lib' if not grep { $_ eq 'blib/lib' } @INC ;
}
my @files = all_modules( @dirs );
plan tests => scalar @files ;
foreach ( @files ) {
pod_coverage_ok( $_ ,
{
private => [
qr/^_/ ,
qr/^BUILD$/ ,
qr/^START$/ ,
qr/^STORABLE/ ,
qr/^AUTOMETHOD$/ ,
qr/^DEMOLISH$/ ,
]
});
}
|