Branch Coverage

blib/lib/File/Rotate/Backup/Copy.pm
Criterion Covered Total %
branch 0 66 0.0


line true false branch
19 0 0 unless ref $params eq 'HASH'
27 0 0 if (-l $src or -f $src) { }
0 0 elsif (-d $src) { }
40 0 0 if (-e $dst and -d $dst)
52 0 0 unless opendir DIR, $src
53 0 0 if $_ ne $cur_dir
68 0 0 if (-e $dst and -d $dst)
85 0 0 if ($self->_isSameFile($src_path, $dst_path))
97 0 0 if (-l $src_path) { }
0 0 elsif (-f $src_path) { }
0 0 elsif (-d _) { }
0 0 elsif (-p _) { }
0 0 elsif (-S _) { }
0 0 elsif (-b _) { }
0 0 elsif (-c _) { }
101 0 0 unless symlink $link_content, $dst_path
110 0 0 unless $self->_copyPlainFile($src_path, $dst_path)
115 0 0 unless mkdir $dst_path, 511
143 0 0 if (-l $src_file or -l $dst_file) { }
151 0 0 if ($src_dev == $dst_dev and $src_ino == $dst_ino)
176 0 0 unless open IN, '<' . $src_path
177 0 0 unless (open OUT, '>' . $dst_path)
201 0 0 if (not -l $victim and -d $victim) { }
206 0 0 if ($$params{'use_flock'}) { }
209 0 0 unless (flock FILE, &Fcntl::LOCK_EX() | &Fcntl::LOCK_NB)
218 0 0 if (not $rv and $$params{'use_rm'})
226 0 0 if (not $rv and $$params{'use_rm'})
245 0 0 unless opendir DIR, $dir
246 0 0 if $_ ne $cur_dir
277 0 0 if (-l $src or -l $dst) { }
285 0 0 if ($src_dev == $dst_dev) { }
308 0 0 unless $$self{'_debug'}
309 0 0 unless $$self{'_debug_level'} >= $level