12 $Has_Test_Pod = eval 'use Test::Pod 0.95; 1';
16 my $manifest = "MANIFEST";
17 open(my $manifest_fh, "<", $manifest) or die "Can't open $manifest: $!";
18 my @modules = map { m{^lib/(\S+)}; $1 }
19 grep { m{^lib/\S+\.pm} }
25 plan tests => scalar @modules * 2;
26 foreach my $file (@modules) {
27 # Make sure we look at the local files and do not reload them if
28 # they're already loaded. This avoids recompilation warnings.
31 ok eval { require($file); 1 } or diag "require $file failed.\n$@";
34 skip "Test::Pod not installed", 1 unless $Has_Test_Pod;