Branch Coverage

lib/CPANPLUS/Internals/Constants.pm
Criterion Covered Total %
branch 27 52 51.9


line true false branch
38 14 45 $^O eq 'VMS' ? :
50 21 15 unless my $fmt = $_[0]
51 1 9 if $fmt ne 'CPANPLUS::Dist::Build' and $fmt ne 'CPANPLUS::Dist::MM'
76 154 0 if -e $_[-1]
80 1 0 if sub {
90 19 0 if -e $file and -r _
97 49 1 if -d $_[-1]
101 48 1 if sub {
110 14 1 @_ ? :
115 1 1 @_ ? :
120 16 1 @_ ? :
126 34 1 @_ ? :
132 13 0 @_ ? :
137 0 0 @_ ? :
142 0 0 @_ ? :
146 0 0 @_ ? :
151 0 0 @_ ? :
191 0 72 unless open $fh, "$mode" . $file
195 72 0 if $fh
201 0 60 unless my $file = $_[0]
227 0 42 unless my $dir = $_[0]
228 42 0 $dir =~ m[^/] ? :
248 0 0 unless my $dir = $_[0]
252 0 0 if $File::Find::name =~ /\.xs$/i
260 0 0 unless my $obj = shift @_
279 0 0 unless my $line = shift @_