Condition Coverage

blib/lib/File/Copy/Recursive.pm
Criterion Covered Total %
condition 65 123 52.8


and 3 conditions

line !l l&&!r l&&r condition
141 143 1 3 $File::Copy::Recursive::RMTrgFil and -d $_[1] || -e $_[1]
158 0 143 2 $path and not -d $path
161 145 0 0 -l $_[0] and $File::Copy::Recursive::CopyLink
143 0 2 -d $_[0] and -f $_[1]
164 0 0 0 not -e $target and $File::Copy::Recursive::BdTrgWrn
186 9 0 0 -l $_[0] and $File::Copy::Recursive::CopyLink
199 13 0 0 $File::Copy::Recursive::RMTrgDir and -d $_[1]
216 5 4 2 -e $_[1] and not -d $_[1]
225 2 1 1 $File::Copy::Recursive::CPRFComp and not $globstar
244 45 0 0 $File::Copy::Recursive::MaxDepth and $File::Copy::Recursive::MaxDepth =~ /^\d+$/
45 0 0 $File::Copy::Recursive::MaxDepth and $File::Copy::Recursive::MaxDepth =~ /^\d+$/ and $level >= $File::Copy::Recursive::MaxDepth
255 0 0 0 $_ ne '.' && $_ ne '..'
260 45 45 306 $_ ne '.' && $_ ne '..'
268 171 0 135 -l $org and $File::Copy::Recursive::CopyLink
271 45 90 0 not -e $target and $File::Copy::Recursive::BdTrgWrn
278 36 0 0 not -w $org and $File::Copy::Recursive::KeepMode
327 9 0 0 -l $_[0] and $File::Copy::Recursive::CopyLink
355 58 0 0 not -d $newpth and $nofatal
363 12 0 0 not -d $newpth and $nofatal
373 3 0 185 -d _ && defined $orig_dev
0 185 0 $^O ne 'MSWin32' and not $orig_ino
423 0 0 6 -d _ and defined $orig_dev
0 0 6 -d _ and defined $orig_dev and $orig_ino
427 6 0 0 $force and 'File::Spec'->file_name_is_absolute($path)
473 0 181 0 $^O ne 'MSWin32' and not $orig_ino
487 4 0 1112 defined $cur_dev && defined $cur_ino

or 2 conditions

line l !l condition
243 37 0 mkdir $end, $File::Copy::Recursive::DirPerms or return
302 0 0 fcopy($org, $new, $buf) or next
303 0 0 fcopy($org, $new) or next
306 0 0 fcopy($org, $new, $buf) or return
307 135 0 fcopy($org, $new) or return
354 9 0 mkdir $newpth, $File::Copy::Recursive::DirPerms or return
362 10 0 mkdir $newpth, $File::Copy::Recursive::DirPerms or return
488 0 4 $cur_dev ||= 'undef(path went away?)'
489 0 4 $cur_ino ||= 'undef(path went away?)'

or 3 conditions

line l !l&&r !l&&!r condition
141 2 2 0 -d $_[1] || -e $_[1]
190 1 1 7 -d $_[0] or substr($_[0], -1, 1) eq '*'
216 2 2 9 not -d $_zero or -e $_[1] and not -d $_[1]
331 1 1 7 -d $_[0] or substr($_[0], -1, 1) eq '*'
354 49 0 9 -d $newpth or $nofatal
362 2 0 10 -d $newpth or $nofatal
373 3 0 185 not -d _ && defined $orig_dev or $^O ne 'MSWin32' and not $orig_ino
473 0 0 181 not defined $orig_dev or $^O ne 'MSWin32' and not $orig_ino
495 5 10 1101 $orig_dev ne $cur_dev or $orig_ino ne $cur_ino