| blib/lib/Basket/Calc.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 6 | 15 | 40.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 62 | 0 | 0 | 8 | exists $$item{$key} and $$item{$key} |
| 87 | 6 | 0 | 2 | exists $$item{'currency'} and $$item{'currency'} |
| 131 | 0 | 0 | 4 | exists $$discount{$key} and $$discount{$key} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 75 | 0 | 0 | 4 | not looks_like_number($$item{'quantity'}) or $$item{'quantity'} < 0 |
| 149 | 0 | 0 | 1 | $$discount{'value'} <= 0 or $$discount{'value'} > 1 |