Branch Coverage

blib/lib/File/Copy/Recursive/Reduced.pm
Criterion Covered Total %
branch 70 86 81.4


line true false branch
169 3 60 unless @_ == 2
172 3 57 unless _basic_samecheck($from, $to)
178 1 56 unless _dev_ino_check($from, $to)
189 6 59 if ($path and not -d $path)
193 4 61 if (-l $from and $CopyLink) { }
2 59 elsif (-d $from and -f $to) { }
197 2 2 unless -e $target
200 0 4 if -l $new
201 0 4 unless symlink $target, $new
205 0 59 unless copy($from, $to)
208 4 55 -d $to ? :
220 17 0 if (defined $dir)
227 0 86 unless -d $newpth
233 17 0 if (defined $file)
236 0 17 unless -d $newpth
290 3 17 unless @_ == 2
296 3 14 unless _basic_samecheck(@_)
311 2 24 if (substr($_zero, -1, 1) eq "*")
325 1 25 unless _dev_ino_check($_zero, $_[1])
327 4 21 if (not -d $_zero or -e $_[1] and not -d $_[1])
335 11 10 unless (-d $_[1])
336 0 11 unless pathmk($_[1])
349 21 69 if $end eq $baseend
350 21 69 if $end eq $baseend
355 69 21 unless -d $end
358 0 90 unless opendir my $str_dh, $str
366 9 110 if (-l $from and $CopyLink) { }
69 41 elsif (-d $from) { }
370 1 8 unless -e $target
372 0 9 if -l $to
373 0 9 unless symlink $target, $to
378 0 69 unless $rc
383 0 41 unless fcopy($from, $to)
392 0 21 unless &$recurs($_zero, $_one)
398 8 100 unless defined $from and defined $to
399 4 96 if $from eq $to
405 0 108 if $^O eq "MSWin32"
411 4 104 if ($one and $one eq $two)
457 6 31 unless @_ == 2
459 6 25 unless _basic_samecheck($from, $to)
465 2 23 unless _dev_ino_check($from, $to)
469 2 0 if -l $_[0] and $CopyLink
471 12 9 if -d $_[0] or substr($_[0], -1, 1) eq "*"