Branch Coverage

lib/Algorithm/CurveFit/Simple.pm
Criterion Covered Total %
branch 61 78 78.2


line true false branch
40 0 1 if $time_limit < 0.01
42 0 1 if (defined $p{'iterations'}) { }
51 1 0 if ($iter_mode eq 'time')
69 0 1 $p{'inv'} ? :
72 1 0 unless $impl_lang eq 'coderef'
98 0 11 if $terms > 10
99 8 3 if ($terms != 3)
113 7 8 if (defined $p{'xydata'}) { }
5 3 elsif (defined $p{'xdata'} and defined $p{'ydata'}) { }
115 0 7 unless (ref $xy eq 'ARRAY' and @$xy >= 2 and ref $xy->[0] eq 'ARRAY' and ref $xy->[1] eq 'ARRAY')
123 2 5 if (@$xy == 2 and @{$xy->[0];} > 2) { }
129 1 4 unless @{$xy->[0];} == 2
141 0 11 unless ref $xdata eq 'ARRAY' and ref $ydata eq 'ARRAY'
142 2 9 unless @$xdata == @$ydata
143 1 8 unless @$xdata > 1
144 3 5 if ($p{'inv'})
171 2 8 if $impl_lang eq 'coderef'
173 3 5 if $impl_lang eq 'c'
185 2 4 $i == 1 ? :
190 0 2 if ($opt_hr->{'bounds_check'})
193 0 0 if $high_x < $x
194 0 0 if $low_x > $x
199 0 2 if $opt_hr->{'round_result'}
204 0 2 unless defined $coderef
214 5 10 $i == 1 ? :
219 1 4 if ($opt_hr->{'bounds_check'})
222 1 6 if $high_x < $x
223 1 6 if $low_x > $x
229 1 4 if $opt_hr->{'round_result'}
248 1 2 if $opt_hr->{'round_result'} and not $opt_hr->{'suppress_includes'}
253 1 2 if ($opt_hr->{'bounds_check'})
256 1 6 if $high_x < $x
257 1 6 if $low_x > $x
268 6 3 if defined $$params_ar_ar[$i + 1]
273 1 2 if $opt_hr->{'round_result'}
289 0 10 unless (defined $y)
296 10 0 if ($observed_y and $y) { }
297 5 5 $y > $observed_y ? :
301 2 8 if $dev_mag > $max_mag