Branch Coverage

blib/lib/CPAN/Reporter/PrereqCheck.pm
Criterion Covered Total %
branch 53 58 91.3


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