Branch Coverage

lib/Heap/Binomial.pm
Criterion Covered Total %
branch 26 58 44.8


line true false branch
20 0 0 @_ ? :
25 0 0 @_ ? :
35 0 0 if $width < 2
50 0 0 unless ($el)
84 0 0 unless --$pdeg == $$cel{'degree'}
86 0 0 unless $pv->cmp($$cel{'val'}) <= 0
90 0 0 unless $pdeg == 0
98 0 0 if $validate >= 2
99 0 0 unless my $el = $$h
102 0 0 unless $$el{'degree'} > $pdeg
137 0 200 if ($validate)
138 0 0 unless $v->can('heap')
140 0 0 unless $v->can('cmp')
149 2 100 unless my $el = $$h
152 51 168 if $top->cmp($$el{'val'}) > 0
162 2 100 unless my $mel = $$h
170 51 168 if ($top->cmp($$el{'val'}) > 0)
208 249 514 if ($$el1{'degree'} <= $$el2{'degree'}) { }
222 58 142 if ($el2)
231 185 15 $anymerge ? :
238 0 0 unless my $el = $v->heap
242 0 0 if $v->cmp($$p{'val'}) >= 0
257 0 100 unless my $el = $v->heap
307 0 0 if $ch = $$el{'child'}
347 392 482 if ($$cur{'degree'} != $$next{'degree'})
356 112 370 if ($n2 = $$next{'sib'} and $$n2{'degree'} == $$cur{'degree'})
363 352 130 if ($$cur{'val'}->cmp($$next{'val'}) <= 0) { }
384 192 197 if $$cur{'degree'} != $$next{'degree'}
387 9 188 if ($$cur{'val'}->cmp($$next{'val'}) <= 0) { }