Branch Coverage

lib/Heap/Fibonacci.pm
Criterion Covered Total %
branch 32 76 42.1


line true false branch
20 0 0 @_ ? :
25 0 0 @_ ? :
35 0 0 if $width < 2
53 0 0 unless ($el)
62 0 0 if ($ch1)
73 0 0 unless my $top = $$h
96 0 0 unless $$cur{'left'} == $prev
97 0 0 unless defined $p and defined $$cur{'p'} and $$cur{'p'} == $p or not defined $p || defined $$cur{'p'}
100 0 0 if $p and $$p{'degree'} <= $$cur{'degree'}
102 0 0 if $p and $$p{'val'}->cmp($$cur{'val'}) > 0
104 0 0 if $ch = $$cur{'child'}
113 0 0 if $validate >= 2
114 0 0 if $el = $$h
149 0 107850 if ($validate)
150 0 0 unless $v->can('heap')
152 0 0 unless $v->can('cmp')
157 107 107743 if (not $top = $$h) { }
162 9936 97807 if $v->cmp($$top{'val'}) < 0
168 300 202 if $$h
175 2 29730 unless my $el = $$h
183 29468 262 if ($cur = $$el{'child'})
198 101 29629 if ($$el{'right'} == $el) { }
226 0 0 unless ($el)
232 0 0 unless my $el2 = $$h2
245 0 0 if $$el{'val'}->cmp($$el2{'val'}) > 0
259 0 0 unless my $el = $v->heap
265 0 0 if $$top{'val'}->cmp($v) > 0
267 0 0 if ($p = $$el{'p'} and $v->cmp($$p{'val'}) < 0)
282 0 100 unless my $el = $v->heap
287 56 44 if $p = $$el{'p'}
322 39060 39063 if $ch = $$el{'child'}
325 78120 3 if defined $$el{'val'}
346 262107 68539 if ($pc = $$p{'child'}) { }
378 144933 185713 if $$cur{'val'}->cmp($$alt{'val'}) > 0
397 64572 124612 if $$$h{'val'}->cmp($$cur{'val'}) > 0
407 48 11 if (--$$p{'degree'}) { }
425 32 27 unless $p = $$el{'p'}
428 24 3 unless $$el{'mark'}