Branch Coverage

blib/lib/Math/Numerical.pm
Criterion Covered Total %
branch 39 60 65.0


line true false branch
58 0 2 $Math::Numerical::Config{'uselongdouble'} ? :
64 0 8 unless ref $func eq "CODE"
67 39 0 if defined $r
68 0 0 if $@
75 0 3 $_[0] * $_[1] > 0 ? :
143 3 1 if ($do_bracket) { }
145 0 3 unless defined $a
149 0 1 if $fa > 0 and $fb > 0 or $fa < 0 and $fb < 0
154 21 4 if ($fb > 0 and $fc > 0 or $fb < 0 and $fc < 0)
158 2 23 if (abs $fc < abs $fb)
164 0 4 wantarray ? :
4 21 if abs $xm <= $tol1 or $fb == 0
165 19 2 if (abs $e >= $tol1 and abs $fa > abs $fb) { }
167 17 2 if ($a == $c) { }
176 10 9 if $p > 0
180 1 18 $min1 < $min2 ? :
19 0 if (2 * $p < ($min1 < $min2 ? $min1 : $min2)) { }
192 18 3 if (abs $d > $tol1) { }
270 0 4 if $x1 == $x2
272 0 4 unless $max_iter > 0
275 0 4 unless $do_outward or $do_inward
278 0 4 unless $inward_split >= 2
280 0 4 unless $inward_factor >= 2
282 0 4 unless $outward_factor > 1
290 6 0 if ($do_outward)
291 4 2 if $fl1 * $fl2 < 0
292 0 2 if (abs $fl1 < abs $fl2) { }
300 2 0 if ($do_inward)
307 0 6 if $fa * $fb < 0
315 0 2 if $inward_split >= $max_iter