Branch Coverage

blib/lib/Algorithm/Knap01DP.pm
Criterion Covered Total %
branch 22 28 78.5


line true false branch
27 1 7 unless scalar @{$$self{'weights'};} == scalar @{$$self{'profits'};}
38 0 5 unless @w > 0
44 353 128 if ($w[0] <= $c) { }
57 2159 713 if ($c >= $w[$k]) { }
59 1016 1143 if ($n < $y) { }
995 148 elsif ($n > $y) { }
88 0 5 unless @{$$self{'tableval'};}
99 25 19 if ($x[$k][$c] == 1) { }
2 17 elsif ($x[$k][$c] == 2) { }
109 2 33 if @temp
119 0 5 unless defined $file
142 0 2 unless $N > 0 and $R > 0 and $N == int $N and $R == int $R
163 5 0 if defined $$self{'filename'}
173 0 27 if $i % $width == 0