Branch Coverage

blib/lib/Test/Dpkg.pm
Criterion Covered Total %
branch 12 34 35.2


line true false branch
81 1 15 if (defined $path) { }
82 1 0 if ($test_mode eq 'cpan') { }
104 0 0 if ($test_mode eq 'cpan') { }
113 2 0 if ($test_mode eq 'cpan') { }
125 0 0 if /$filter/
138 207 291 if /$filter/
153 9 0 if (not $ENV{'DPKG_DEVEL_MODE'} || $ENV{'AUTHOR_TESTING'})
165 1 1 if (@imports >= 1 and version::is_lax($imports[0]))
173 2 0 unless (eval "\n package $package;\n use $module $version \@imports;\n 1;\n ")
182 0 3 if (not can_run($command))
189 0 4 if (defined $ENV{'srcdir'})
190 0 0 unless chdir $ENV{'srcdir'}
199 0 0 unless open my $fhnew, '>', $filenamenew
200 0 0 unless open my $fh, '<', $filename
205 0 0 unless close $fh
206 0 0 unless close $fhnew
208 0 0 unless rename $filenamenew, $filename