Branch Coverage

blib/lib/CPANPLUS/Dist/Debora/Package/Debian.pm
Criterion Covered Total %
branch 30 78 38.4


line true false branch
179 0 2 if (@commands == grep({can_run($_);} @commands))
181 0 0 if (-f "/etc/debian_version")
194 0 0 if ($ok)
197 0 0 if ($ok)
200 0 0 if ($ok)
203 0 0 if ($ok)
208 0 0 if ($ok)
228 0 0 if (is_testing())
306 0 1 if (exists $PROVIDES_FOR{$dist_name})
548 1 0 if (defined $debiandir)
564 2 6 if (exists $PACKAGE_NAME_FOR{$dist_name}) { }
582 0 5 exists $VERSION_FOR{$dist_name} ? :
625 0 0 if (-e $debiandir)
630 0 0 unless (mkdir $debiandir)
642 1 0 if ($self->is_noarch) { }
647 0 0 if ($dpkg_cmd)
650 0 0 if (run("command", \@arch_cmd, "buffer", \$output))
657 0 1 unless ($arch)
659 0 0 if (exists $ARCH_FOR{$machine}) { }
676 2 0 if (open my $fh, "<", "/var/lib/dpkg/available")
680 196 4760 if ($line =~ /^ Package: \h+ (.+) $/msux) { }
34 4726 elsif ($line =~ /^ Version: \h+ (\d+) :/msux) { }
196 4530 elsif ($line eq '') { }
686 34 0 if (defined $name)
695 0 2 unless close $fh
705 0 1 if (defined $ENV{'EPOCH'} and $ENV{'EPOCH'} =~ /\A \d+ \z/msux)
726 0 1 $epoch_env > $epoch_sys ? :
737 0 1 if ($epoch)
761 0 0 if (not defined $text) { }
767 0 0 if (not $ok) { }
771 0 0 if (defined $mode)
773 0 0 unless ($ok)
822 3 2 if ($file =~ /\A GPL-/msux) { }
2 0 elsif ($file =~ /\A LGPL-/msux) { }
883 1 10 if ($meta2_name eq 'open_source') { }
1 9 elsif ($meta2_name eq 'unrestricted') { }
884 1 0 if ($name eq "MPL-2.0")
889 1 0 if ($name eq "CC0-1.0")
909 11 0 exists $license_text_for{$meta2_name} ? :