Branch Coverage

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


line true false branch
170 3 60 unless @_ == 2
173 3 57 unless _basic_samecheck($from, $to)
179 1 56 unless _dev_ino_check($from, $to)
190 6 59 if ($path and not -d $path)
194 4 61 if (-l $from and $CopyLink) { }
2 59 elsif (-d $from and -f $to) { }
198 2 2 unless -e $target
201 0 4 if -l $new
202 0 4 unless symlink $target, $new
206 0 59 unless copy($from, $to)
209 4 55 -d $to ? :
221 17 0 if (defined $dir)
228 0 86 unless -d $newpth
234 17 0 if (defined $file)
237 0 17 unless -d $newpth
291 3 17 unless @_ == 2
297 3 14 unless _basic_samecheck(@_)
312 2 24 if (substr($_zero, -1, 1) eq "*")
326 1 25 unless _dev_ino_check($_zero, $_[1])
328 4 21 if (not -d $_zero or -e $_[1] and not -d $_[1])
336 11 10 unless (-d $_[1])
337 0 11 unless pathmk($_[1])
350 21 69 if $end eq $baseend
351 21 69 if $end eq $baseend
356 69 21 unless -d $end
359 0 90 unless opendir my $str_dh, $str
367 9 110 if (-l $from and $CopyLink) { }
69 41 elsif (-d $from) { }
371 1 8 unless -e $target
373 0 9 if -l $to
374 0 9 unless symlink $target, $to
379 0 69 unless $rc
384 0 41 unless fcopy($from, $to)
393 0 21 unless &$recurs($_zero, $_one)
399 8 100 unless defined $from and defined $to
400 4 96 if $from eq $to
406 0 108 if $^O eq "MSWin32"
412 4 104 if ($one and $one eq $two)
458 6 31 unless @_ == 2
460 6 25 unless _basic_samecheck($from, $to)
466 2 23 unless _dev_ino_check($from, $to)
470 2 0 if -l $_[0] and $CopyLink
472 12 9 if -d $_[0] or substr($_[0], -1, 1) eq "*"