Branch Coverage

lib/Test/LatestPrereqs.pm
Criterion Covered Total %
branch 15 24 62.5


line true false branch
16 1 2 unless (@files)
17 1 0 if -f 'Makefile.PL'
18 0 1 if -f 'Build.PL'
23 0 3 unless -f $file
24 0 3 unless open my $fh, '<', $file
26 2 1 if ($file =~ /Makefile\.PL$/) { }
1 0 elsif ($file =~ /Build\.PL$/) { }
27 2 0 if ($content =~ /WriteMakefile\s*\(/) { }
0 0 elsif ($content =~ /use\s+inc::Module::Install/) { }
42 1 2 unless ('Test::More'->builder->{'Have_Plan'})
43 0 1 unless (@requires)
54 2 10 if ($$required{$module} and !$version || 'CPAN::Version'->vgt($$required{$module}, $version)) { }