Branch Coverage

blib/lib/Heap/Priority.pm
Criterion Covered Total %
branch 39 42 92.8


line true false branch
26 1 32 unless (defined $item)
32 5 27 unless exists $$self{'.heap'}{$priority}
40 1 3 unless @priorities
41 3 0 $$self{'.highest_first'} ? :
44 2 1 $$self{'.fifo'} ? :
51 5 1 if (exists $$self{'.heap'}{$priority}) { }
63 1 9 unless (exists $$self{'.items'}{$item})
67 5 4 if (defined $priority) { }
69 2 3 unless $_off_heap
74 3 2 unless @{$$self{'.items'}{$item};}
76 1 4 unless @{$$self{'.heap'}{$priority};}
82 3 3 unless @{$$self{'.heap'}{$priority};}
91 1 1 unless (exists $$self{'.items'}{$item})
102 19 1 if $$self{'.highest_first'}
103 17 3 wantarray ? :
108 1 21 unless (exists $$self{'.heap'}{$priority})
113 1 20 unless $$self{'.fifo'}
114 19 2 wantarray ? :
122 12 2 wantarray ? :
128 0 5 if $$self{'.raise_error'} == 2
129 0 5 if $$self{'.raise_error'} == 1