blib/lib/Array/Heap/ModifiablePriorityQueue.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 14 | 85.7 |
line | true | false | branch |
---|---|---|---|
70 | 1 | 2 | if (my $node = $$self{'items'}{$item}) { } |
90 | 0 | 1 | unless my $node = $$self{'heap'}[0] |
105 | 0 | 3 | unless my $node = pop_heap_idx(@{$$self{'heap'};}) |
120 | 1 | 1 | unless my $node = delete $$self{'items'}{$item} |
146 | 1 | 4 | if (my $node = $$self{'items'}{$item}) { } |
166 | 1 | 2 | unless my $node = delete $$self{'items'}{$item} |
169 | 1 | 1 | if ($last != $node) |