Condition Coverage

blib/lib/App/MechaCPAN/Install.pm
Criterion Covered Total %
condition 39 53 73.5


and 3 conditions

line !l l&&!r l&&r condition
52 4 0 30 ref $opts->{'source'} ne 'HASH' and ref $opts->{'source'} ne 'CODE'
289 36 0 2 -e 'Build.PL' and not $is_mb_dep
298 2 0 36 not defined $maker and -e 'Makefile.PL'
357 1 16 20 not $skip_tests and defined $target->{'modules'}
369 1 30 6 not $skip_tests and $opts->{'smart-tests'}
626 544 1 2 $cached_target->{'state'} eq $COMPLETE and $src->{'constraint'} ne $cached_target->{'constraint'}
673 0 1 1 $prereq->{'prereqs_was_installed'} and $prereq->{'was_installed'}
877 46 218 11 $module ne 'perl' and not $is_core
942 8 5 1 defined $target->{'version'} and $target->{'version'} eq $ver
973 42 2 0 $opts->{'only-sources'} and not defined $new_src
993 15 0 25 exists $target->{'installed_version'} and not $target->{'was_installed'}
1002 40 0 0 exists $target->{'inital_version'} and not defined $target->{'inital_version'}

or 2 conditions

line l !l condition
40 34 0 shift() // '.'
145 9 31 $opts->{'update'} // 1
748 1 1 $commit || 'master'
927 2 4 $constraint // 0

or 3 conditions

line l !l&&r !l&&!r condition
153 1 0 473 $target->{'state'} eq $COMPLETE or $target->{'state'} eq $FAILED
808 0 0 0 $ff->error || "Could not download $url"
1024 109 0 110 $target->{'name'} || $target->{'module'} || $target->{'src_name'}