Branch Coverage

File:Dpkg/Source/Archive.pm
Coverage:32.9%

line%coveragebranch
440TFif ($opts{'chdir'})
670TFunless *$self->{'tar_input'}
680TFif $file =~ m[^\Q$cwd\E/(.+)$]
690TFunless print {*$self->{'tar_input'};} "$file\000"
760TFif (*$self->{'chdir'})
790TFif not -l $testfile and -d _
870TFif (*$self->{'chdir'})
900TFif -l $testfile or not -d _
980TFunless close *$self->{'tar_input'}
11650TFunless (-e $dest)
1180TFunless mkdir $dest
14250TFunless $opts{'no_fixperms'}
14550TFif ($opts{'in_place'}) { }
15250TFunless (defined $canon_pathname)
1530TFif $! == 2
15750TFif $canon_pathname eq $canon_devnull
15850TFif $canon_pathname eq $canon_basedir
159100TFif $canon_pathname =~ m[^\Q$canon_basedir/\E]
16950TFunless lstat $File::Find::name
175100TFunless (lstat $destpath)
17650TFif ($! == 2) { }
183100TFif ($dest_exists)
184100TFif ($dest_is_dir and $src_is_dir) { }
50TFelsif ($dest_is_dir) { }
18750TFunless chmod $mode, $destpath
18950TFunless utime $atime, $mtime, $destpath
1950TFunless rmdir $destpath
19950TFunless unlink $destpath
204100TFif ($src_is_dir)
20750TFunless rename $File::Find::name, $destpath
2180TFunless opendir my $dir_dh, $tmp
2190TFif $_ ne "."
2240TFif (scalar @entries == 1 and not -l "$tmp/$entries[0]" and -d _) { }
2250TFunless rename "$tmp/$entries[0]", $dest
2290TFunless rename $tmp, $dest