Branch Coverage

lib/CPANPLUS/Internals/Constants.pm
Criterion Covered Total %
branch 35 64 54.6


line true false branch
66 24 25 unless my $fmt = $_[0]
67 35 10 if $fmt ne "CPANPLUS::Dist::Build" and $fmt ne "CPANPLUS::Dist::MM"
92 1 7 if -e $_[-1]
96 296 2 if sub { ;}->($file)
106 99 0 if -e $file and -r _
113 22 0 if -d $_[-1]
117 83 5 if sub { ;}->($dir)
134 70 1 @_ ? :
138 4 2 @_ ? :
143 18 3 @_ ? :
149 19 2 @_ ? :
154 27 0 @_ ? :
159 3 0 @_ ? :
164 21 0 @_ ? :
169 3 0 @_ ? :
175 58 1 @_ ? :
180 7 0 @_ ? :
185 0 0 @_ ? :
189 0 0 @_ ? :
194 0 0 @_ ? :
247 0 0 unless open $fh, "$mode" . $file
251 0 86 if $fh
258 86 0 unless opendir $dh, $dir
262 0 7 if $dh
268 7 0 unless my $dh = sub { ;}->($dir)
285 0 7 unless my $file = $_[0]
313 0 62 unless my $dir = $_[0]
314 0 60 $dir =~ m[^/] ? :
343 60 0 unless my $dir = $_[0]
347 0 0 if $File::Find::name =~ /\.xs$/i
355 0 0 unless my $obj = shift()
374 0 0 unless my $line = shift()