Branch Coverage

blib/lib/CPAN/Reporter/PrereqCheck.pm
Criterion Covered Total %
branch 47 58 81.0


line true false branch
27 0 5 unless $mod
28 0 5 unless defined $need
31 1 4 if $saw_mod{$mod}++
35 1 3 if ($mod eq 'perl') { }
41 0 3 if (@packpath == 1 and $packpath[0] eq "readline.pm")
47 2 29 if (-f $pmfile)
54 2 1 if (defined $inst_file) { }
56 1 1 if not defined $preliminary_version or $preliminary_version eq "undef"
60 0 2 unless (_try_load($mod, $preliminary_version))
68 1 1 if (not defined $have or $have eq "undef")
71 1 0 if (defined $mod_version) { }
91 1 6 if ($rq =~ s/>=\s*//) { }
1 5 elsif ($rq =~ s/>\s*//) { }
1 4 elsif ($rq =~ s/!=\s*//) { }
1 3 elsif ($rq =~ s/<=\s*//) { }
1 2 elsif ($rq =~ s/<\s*//) { }
94 0 1 if ("CPAN::Version"->vgt($have, $rq))
99 1 0 if ("CPAN::Version"->vcmp($have, $rq))
104 1 0 unless ("CPAN::Version"->vgt($have, $rq))
109 1 0 if ("CPAN::Version"->vlt($have, $rq))
115 3 0 unless ("CPAN::Version"->vlt($have, $rq))
119 2 1 $passes == @requirements ? :
202 1 7 if ($module eq 'Module::Install' and $have < 0.95) { }
1 6 elsif ($module eq 'Catalyst::DispatchType::Regex' and $have <= 5.90032) { }
1 5 elsif (grep {$_ eq $module;} @do_not_load) { }
1 4 elsif ($module =~ /^Acme::/) { }
219 1 3 if (exists $loading_conflicts{$module})
223 1 0 if (exists $INC{$file})
229 1 2 if (exists $load_before{$module})