| blib/lib/List/Priority.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 18 | 24 | 75.0 |
| line | true | false | branch |
|---|---|---|---|
| 19 | 2 | 3 | if (@_) |
| 30 | 0 | 150 | if scalar @_ != 3 |
| 34 | 0 | 150 | if (~$priority & $priority) ne '0' |
| 37 | 15 | 135 | if (defined $$self{'options'}{'capacity'} and $$self{'options'}{'capacity'} <= $$self{'size'}) |
| 42 | 14 | 1 | if ($priority > $bottom_priority) { } |
| 62 | 0 | 25 | if $$self{'size'} == 0 |
| 63 | 0 | 25 | unless defined $priority |
| 68 | 20 | 5 | if scalar @{$$self{'queues'}{$priority};} == 0 |
| 92 | 0 | 6 | if scalar @_ != 1 |
| 99 | 0 | 5 | if scalar @_ != 1 |
| 111 | 3 | 1 | if (@_ > 1) |
| 113 | 2 | 1 | if (defined $new_capacity) |