Branch Coverage

blib/lib/Doit/Deb.pm
Criterion Covered Total %
branch 8 54 14.8


line true false branch
29 0 0 if (@missing_packages)
41 2 0 if (@packages)
48 0 2 if (ref $package eq "ARRAY")
57 0 2 unless my $pid = IPC::Open3::open3(undef, $fh, $err, @cmd)
61 1 0 if (/^([^\t]+)\t([^\t]+)\t([^\t]*)$/) { }
62 0 1 if ($2 ne "install ok installed")
65 0 1 if ($required_version{$1} and $required_version{$1} ne $3)
75 1 1 unless ($seen_packages{$package})
88 0 0 if %opts
90 0 0 if (not $url) { }
91 0 0 unless ($keyserver)
94 0 0 unless ($key)
98 0 0 if ($keyserver)
104 0 0 if ($key)
121 0 0 if (-r $keyfile)
123 0 0 unless open my $fh, "-|", @cmd
126 0 0 if (/^fpr:::::::::\Q$key\E:$/)
131 0 0 unless close $fh
139 0 0 unless ($found_key)
140 0 0 if ($keyserver) { }
0 0 elsif ($url) { }
144 0 0 if ($self->which('curl')) { }
150 0 0 if ($self->is_dry_run) { }
153 0 0 unless open my $ifh, "-|", @fetch_cmd
155 0 0 unless open my $ofh, "|-", @add_cmd
161 0 0 unless close $ofh
163 0 0 unless close $ifh