Branch Coverage

blib/lib/CPAN/FindDependencies.pm
Criterion Covered Total %
branch 49 60 81.6


line true false branch
232 0 13 if $opts{'perl'} =~ /[^0-9.]/
234 0 13 if ($opts{'perl'} =~ /\..*\./)
243 8 5 unless ($CPAN::FindDependencies::p)
248 13 0 $CPAN::FindDependencies::p->package($module) ? :
259 2 11 if (not $opts{'nowarnings'})
260 1 1 if ($opts{'fatalerrors'}) { }
271 3 47 unless $module
280 7 1 if ($file)
282 0 7 if $@
285 0 8 unless _get($file || 'http://www.cpan.org/modules/02packages.details.txt.gz')
295 8 8 if ($response->is_success) { }
305 46 40 if $core
307 36 50 $core && $core >= $args{'version'} ? :
322 44 50 if $target eq 'perl' or _incore('module', $target, 'perl', $opts->{'perl'}, 'version', $version)
327 3 47 unless &blessed($dist)
332 7 40 if $seen->{$distname}
341 7 30 if ($reqs{'-warning'})
356 7 30 $warning ? :
29 8 $depth != $opts->{'maxdepth'} ? :
371 37 8 if ($opts->{'cachedir'} and -d $opts->{'cachedir'} and -r $opts->{'cachedir'} . "/$destfile") { }
373 0 37 unless open my $cachefh, $opts->{'cachedir'} . "/$destfile"
379 0 0 if ($contents and $opts->{'cachedir'} and -d $opts->{'cachedir'})
381 0 0 unless open my $cachefh, '>', $opts->{'cachedir'} . "/$destfile"
404 32 8 if ($yaml) { }
406 4 28 if ($@ or not defined $yaml) { }
416 2 26 $opts->{'recommended'} ? :
3 25 $opts->{'configreqs'} ? :
424 6 5 if (not $opts->{'usemakefilepl'}) { }
432 5 0 if ($makefilepl) { }
434 2 1 if ('HASH' eq ref $result) { }