Branch Coverage

blib/lib/Dpkg/Path.pm
Criterion Covered Total %
branch 40 70 57.1


line true false branch
74 0 6 unless -d $file
76 3 18 if -d "$file/DEBIAN"
77 3 15 unless $file =~ m[/]
92 1 1 if (defined $pkg_root)
94 1 0 if $file =~ s/^\Q$pkg_root\E//
114 1 1 if defined $root
117 0 1 unless -d $file
121 0 3 unless -d $parent
122 1 2 if &check_files_are_the_same('debian', $parent)
124 0 2 unless $file =~ m[/]
140 1 4 if $file1 eq $file2
141 0 4 unless -e $file1 and -e $file2
143 0 4 if ($resolve_symlink) { }
171 5 33 if ($d eq '..') { }
172 5 0 if (scalar @new > 0 and $new[-1] ne '..') { }
173 0 5 if $new[-1] eq ''
176 4 1 if (not -l $parent) { }
201 0 3 unless defined $content
202 1 2 if ('File::Spec'->file_name_is_absolute($content)) { }
225 1 84 unless (defined $canon_pathname)
226 0 1 if $! == 2
230 1 83 if $canon_pathname eq '/dev/null'
231 0 83 if $canon_pathname eq $canon_basedir
232 73 10 if $canon_pathname =~ m[^\Q$canon_basedir/\E]
258 0 520 unless $cmd
259 0 520 if ($cmd =~ m[/]) { }
260 0 0 if -x "$cmd"
263 520 2600 if -x "$dir/$cmd"
284 0 0 if defined $filetype
287 0 0 if (defined $filetype)
288 0 0 if $control_file eq ''
291 0 0 if $control_file eq ''
315 0 0 if -f $f
317 0 0 if wantarray
318 0 0 if scalar @files