Branch Coverage

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

line%coveragebranch
570TFif ($opts{'chdir'})
820TFunless *$self->{'tar_input'}
830TFif ($file =~ m[^\Q$cwd\E/(.+)$])
870TFunless print {*$self->{'tar_input'};} "$file\000"
940TFif (*$self->{'chdir'})
970TFif not -l $testfile and -d _
1050TFif (*$self->{'chdir'})
1080TFif -l $testfile or not -d _
1160TFunless close *$self->{'tar_input'}
13450TFunless (-e $dest)
1360TFunless mkdir $dest
16250TFunless $opts{'no_fixperms'}
16550TFif ($opts{'in_place'}) { }
17250TFunless (defined $canon_pathname)
1730TFif $! == 2
17750TFif $canon_pathname eq $canon_devnull
17850TFif $canon_pathname eq $canon_basedir
179100TFif $canon_pathname =~ m[^\Q$canon_basedir/\E]
18950TFunless lstat $File::Find::name
195100TFunless (lstat $destpath)
19650TFif ($! == 2) { }
203100TFif ($dest_exists)
204100TFif ($dest_is_dir and $src_is_dir) { }
50TFelsif ($dest_is_dir) { }
20750TFunless chmod $mode, $destpath
20950TFunless utime $atime, $mtime, $destpath
2150TFunless rmdir $destpath
21950TFunless unlink $destpath
224100TFif ($src_is_dir)
22750TFunless rename $File::Find::name, $destpath
2380TFunless opendir my $dir_dh, $tmp
2390TFif $_ ne "."
2440TFif (scalar @entries == 1 and not -l "$tmp/$entries[0]" and -d _) { }
2450TFunless rename "$tmp/$entries[0]", $dest
2490TFunless rename $tmp, $dest