Branch Coverage

blib/lib/Dpkg/Path.pm
Criterion Covered Total %
branch 37 66 56.0


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[/]
139 0 5 unless -e $file1 and -e $file2
141 0 5 if ($resolve_symlink) { }
169 5 33 if ($d eq '..') { }
170 5 0 if (scalar @new > 0 and $new[-1] ne '..') { }
171 0 5 if $new[-1] eq ''
174 4 1 if (not -l $parent) { }
199 0 3 unless defined $content
200 1 2 if ('File::Spec'->file_name_is_absolute($content)) { }
223 1 83 unless (defined $canon_pathname)
224 0 1 if $! == 2
228 1 82 if $canon_pathname eq '/dev/null'
229 72 10 if $canon_pathname =~ m[^\Q$canon_basedir/\E]
255 0 520 unless $cmd
256 0 520 if ($cmd =~ m[/]) { }
257 0 0 if -x "$cmd"
260 520 2600 if -x "$dir/$cmd"
281 0 0 if defined $filetype
284 0 0 if (defined $filetype)
285 0 0 if $control_file eq ''
288 0 0 if $control_file eq ''
312 0 0 if -f $f
314 0 0 if wantarray
315 0 0 if scalar @files