Branch Coverage

lib/Heap/Binary.pm
Criterion Covered Total %
branch 14 54 25.9


line true false branch
20 0 0 @_ ? :
25 0 0 @_ ? :
35 0 0 if $width < 2
50 0 0 if $i >= @$h
55 0 0 if ($ch + 1 < @$h)
60 0 0 if ($ch < @$h) { }
81 0 0 unless @$h
83 0 0 unless $$h[$p]->cmp($$h[$i]) <= 0
84 0 0 unless ++$i < @$h
85 0 0 unless $$h[$p]->cmp($$h[$i]) <= 0
87 0 0 if $validate >= 2
112 0 200 if ($validate)
113 0 0 unless $v->can('heap')
115 0 0 unless $v->can('cmp')
135 100 2 if (@$h)
139 100 0 if (@$h)
171 0 0 if ($validate)
172 0 0 unless $v->can('heap')
174 0 0 unless $v->can('cmp')
188 0 100 if ($validate)
189 0 0 unless $v->can('heap')
191 0 0 unless $v->can('cmp')
196 0 100 unless defined $i
198 2 98 if ($i == $#$h) { }
202 22 76 if ($v2->cmp($v) < 0) { }
262 300 288 if $k < @$h and $$h[$k]->cmp($$h[$j]) < 0
263 554 34 if ($v->cmp($$h[$j]) > 0)