Branch Coverage

blib/lib/Math/Polynomial/Horner.pm
Criterion Covered Total %
branch 53 60 88.3


line true false branch
81 0 168 $string_config->{'for_perl'} ? :
85 35 133 if ($degree <= 0)
101 0 26 if ($config{'fold_sign'} and $coeff < $zero) { }
115 26 76 if ($config{'fold_sign'} and $coeff < $zero) { }
121 26 76 if ($config{'fold_one'} and $coeff == $one)
134 0 22 if ($config{'fold_one'} and $coeff == $one)
139 22 0 if ($last ne 0)
149 23 80 if ($config{'fold_sign'} and $coeff < $zero) { }
162 1 154 if $xpow == 0
164 103 51 if ($xpow == 1 and $config{'fold_exp_one'}) { }
11 40 elsif ($xpow <= $config{'power_by_times_upto'}) { }
179 120 87 if ($xpow)
180 14 106 if ($last eq 2)
185 94 26 if ($last ne 0)
194 29 104 if ($config{'ascending'}) { }
200 2 0 if ($config{'fold_sign'} and $config{'fold_sign_swap_end'} and ($high = $poly->coeff($degree)) > $zero and ($j, $second) = _second_highest_coeff($poly, $config{'fold_zero'}) and $second < $zero)
213 1 1 if ($limit >= 0)
230 68 49 if ($config{'fold_zero'} and $coeff == $zero)
234 33 16 if ($xpow)
235 21 12 if (length $ret)
236 2 19 if ($i == $degree and $config{'fold_sign'} and $coeff < $zero) { }
248 27 6 if ($i == $degree)
249 5 22 if ($config{'fold_one'} and $coeff == $one) { }
265 2 27 if ($limit != $degree)
266 1 1 if ($last != 0)
282 2 0 if ($config{'fold_sign'} and $config{'fold_sign_swap_end'} and $coeff < $zero and ($j, $second) = _second_highest_coeff($poly, $config{'fold_zero'}) and $second > $zero)
300 102 2 if ($i == $degree)
308 96 99 if ($config{'fold_zero'} and $coeff == $zero)
331 0 10 if (--$j < 0)
335 4 6 unless ($fold_zero and $coeff == $poly->coeff_zero)