blib/lib/Array/Heap/ModifiablePriorityQueue.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 16 | 18 | 88.8 |
line | true | false | branch |
---|---|---|---|
70 | 1 | 5 | if (my $node = $self->{'items'}{$item}) { } |
90 | 0 | 1 | unless my $node = $self->{'heap'}[0] |
105 | 1 | 3 | unless my $node = &pop_heap_idx(\@{$$self{'heap'};}) |
120 | 1 | 1 | unless my $node = delete $self->{'items'}{$item} |
132 | 1 | 2 | unless my $node = $self->{'items'}{$item} |
144 | 0 | 1 | unless my $node = $self->{'heap'}[0] |
192 | 1 | 4 | if (my $node = $self->{'items'}{$item}) { } |
212 | 1 | 2 | unless my $node = delete $self->{'items'}{$item} |
215 | 1 | 1 | if ($last != $node) |