| blib/lib/Algorithm/Knapsack.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 6 | 6 | 100.0 |
| line | true | false | branch |
|---|---|---|---|
| 94 | 8 | 51 | if $$self{'weights'}[$index] > $capacity |
| 96 | 6 | 45 | if ($capacity - $$self{'weights'}[$index] < $$self{'emptiness'}) |
| 100 | 8 | 43 | if ($capacity - $$self{'weights'}[$index] == $$self{'emptiness'}) |