Branch Coverage

blib/lib/OPM/Maker/Command/depcheck.pm
Criterion Covered Total %
branch 25 36 69.4


line true false branch
37 1 1 unless $sopm
40 0 1 unless ($opt->{'home'})
44 0 0 unless -d $path
50 1 0 if (not -d $opt->{'home'})
61 4 0 unless ($ENV{'OPM_UNSECURE'})
72 0 4 if ($ENV{'OPM_MAX_SIZE'})
76 0 4 if ($size > $max_size)
80 0 4 if ($size > 10000000)
107 1 2 if ($result and $opt->{'local_sopm'} and $type eq "PackageRequired")
109 1 0 if (-f $path)
119 0 1 if ($local_name eq $name and "version"->new($local_version) > "version"->new($version))
125 3 5 if $result
128 1 3 if (not @missing) { }
141 4 4 if ($type eq 'ModuleRequired') { }
4 0 elsif ($type eq 'PackageRequired') { }
145 1 3 unless eval { do { require $path; $name->VERSION($version) } }
167 1 3 unless $installed_version
172 1 2 if $installed < $required