Condition Coverage

blib/lib/App/SmokeBrew/Tools.pm
Criterion Covered Total %
condition 36 48 75.0


and 2 conditions

line l !l condition
27 1 0 $mirrors and ref $mirrors eq "ARRAY" and scalar @{$mirrors;}

and 3 conditions

line !l l&&!r l&&r condition
27 1 0 0 $mirrors and ref $mirrors eq "ARRAY"
56 0 0 1 exists $ENV{'PERL5_SMOKEBREW_DIR'} and defined $ENV{'PERL5_SMOKEBREW_DIR'}
62 0 0 0 defined $ENV{$env} and length $ENV{$env}
72 1 6 1 $type and $type eq "latest"
86 1 1 5 $type and $type =~ /^(rel|dev|recent|modern)$/i
93 324 1620 324 $type and $type eq "rel"
324 1296 324 $type and $type eq "dev"
324 648 648 $type and $type eq "recent"
324 324 324 $type and $type eq "modern"
94 225 0 99 _is_rel($_) and not _is_ancient($_)
109 10 0 99 _is_rel($_) and not _is_ancient($_)
10 3 96 _is_rel($_) and not _is_ancient($_) and not _skip($_)

or 2 conditions

line l !l condition
24 1 0 shift() || (return)
44 1 0 shift() || (return)

or 3 conditions

line l !l&&r !l&&!r condition
161 5 5 442 $nv == "5.034002" or $nv == "5.036002"
10 5 437 $nv == "5.034002" or $nv == "5.036002" or $nv == "5.038001"