Branch Coverage

blib/lib/Math/IntervalSearch.pm
Criterion Covered Total %
branch 39 44 88.6


line true false branch
29 0 5517 if (@_ > 4)
38 1 5516 unless defined $x
39 1 5515 unless defined $sequenceRef
40 1 5514 unless ref $sequenceRef
45 500 0 if @_ and defined ref $_[0] and ref $_[0] eq 'CODE'
47 500 0 if @_ and defined ref $_[0] and ref $_[0] eq 'CODE'
54 2 5512 if ($num <= 0)
62 1 5511 unless defined $last_interval_result
65 1 5511 if ($num == 1)
67 1 0 if (&$LessThan($x, $$sequenceRef[0])) { }
76 181 5330 if (&$LessThan($x, $$sequenceRef[0]))
82 171 5159 if (&$LessThanEqualTo($$sequenceRef[$num - 1], $x))
87 0 5159 if ($last_interval_result > $num - 1)
94 111 5048 if ($ihi >= $num)
100 558 4601 if (&$LessThan($x, $$sequenceRef[$ilo]))
105 192 3663 if ($ilo <= 0)
109 366 3297 if (&$LessThanEqualTo($$sequenceRef[$ilo], $x))
117 600 4559 if (&$LessThanEqualTo($$sequenceRef[$ihi], $x))
122 200 3866 if ($ihi >= $num - 1)
126 400 3466 if (&$LessThan($x, $$sequenceRef[$ihi]))
140 5159 6549 if ($middle == $ilo)
144 3145 3404 if (&$LessThan($x, $$sequenceRef[$middle])) { }