Branch Coverage

blib/lib/CPAN/Dependency.pm
Criterion Covered Total %
branch 17 96 17.7


line true false branch
222 0 7 unless defined $$self{'backend'}
238 11 1 if $self->can($attr)
257 15 0 if @_
284 1 0 unless @_
285 0 0 if ($_[0] eq 'all CPAN modules') { }
288 0 0 ref $_[0] ? :
312 1 3 unless @_
313 2 1 ref $_[0] ? :
340 0 0 if not defined $dist or $$self{'skip'}{$dist_name}++
343 0 0 if $dist->is_bundle
353 0 0 unless $archive = $dist->fetch('force', 1)
354 0 0 unless $where = $dist->extract('force', 1)
356 0 0 if $@
364 0 0 if (-f 'File::Spec'->catfile($where, 'META.yml'))
369 0 0 if $@
373 0 0 unless (defined $deps and ref $deps eq 'HASH' and keys %$deps)
377 0 0 if (-f 'File::Spec'->catfile($where, 'Makefile.PL')) { }
0 0 elsif (-f 'File::Spec'->catfile($where, 'Build.PL')) { }
384 0 0 if (not defined $requires) { }
424 0 0 if $$self{'ignore'}{$reqmod}
427 0 0 if 'Module::CoreList'->first_release($reqmod)
431 0 0 unless defined $reqdist
434 0 0 if $reqdist->package_is_perl_core
437 0 0 $reqdist->author->cpanid ne $dist->author->cpanid ? :
452 0 0 if defined $where and -d $where
453 0 0 if $$self{'options'}{'clean_build_dir'}
454 0 0 if $$self{'options'}{'clean_build_dir'}
527 1 0 unless @_
529 0 0 if (exists $args{'file'})
530 0 0 if -f $args{'file'}
559 1 0 unless @_
561 0 0 if (exists $args{'file'})
592 1 0 unless @_
595 0 0 unless -f $cpants_db
599 0 0 unless my $dbh = 'DBI'->connect("dbi:SQLite:dbname=$cpants_db", '', '')
625 0 0 if $$self{'ignore'}{$reqmod}
626 0 0 if 'Module::CoreList'->first_release($reqmod)
628 0 0 unless (defined $reqdist)
629 0 0 if $reqdist->package_is_perl_core
630 0 0 $reqdist->author->cpanid ne $distinfo[2] ? :
666 0 0 if $$meta{'has_seen'}
678 0 0 ($$self{'prereqs'}{$reqdist}{'cpanid'} || '') ne $$meta{'cpanid'} ? :
696 0 0 if $$self{'options'}{'verbose'}
708 0 0 if $$self{'options'}{'verbose'}
738 11 0 if (defined $_[0])
740 9 2 $$self{'options'}{'color'} ? :
757 11 0 if (defined $_[0])
774 4 0 if (defined $_[0])