Branch Coverage

blib/lib/Math/RungeKutta.pm
Criterion Covered Total %
branch 75 100 75.0


line true false branch
30 0 32 if (ref $dydtref ne 'CODE')
38 16 16 if (ref $ynref eq 'ARRAY') { }
16 0 elsif (ref $ynref eq 'HASH') { }
77 0 234 if (ref $dydtref ne 'CODE')
81 117 117 if (ref $ynref eq 'ARRAY') { }
117 0 elsif (ref $ynref eq 'HASH') { }
85 66 51 if ($use_saved_k0) { }
135 66 51 if ($use_saved_k0) { }
175 0 38 if (ref $dydtref ne 'CODE')
179 0 38 if ($dt == 0)
180 19 19 if (ref $ynref eq 'ARRAY') { }
19 0 elsif (ref $ynref eq 'HASH') { }
182 9 10 if (ref $arg4 eq 'ARRAY') { }
186 0 10 unless ($epsilon)
204 13 20 if ($epsilon) { }
20 0 elsif (@errors) { }
208 18 8 if ($errmax < $diff)
209 17 9 if ($ymax < abs ${$ynref;}[$i])
216 39 1 if ($relative_error < $diff)
223 9 24 if ($relative_error < 0.6) { }
5 19 elsif ($relative_error > 1.67) { }
224 9 0 if ($dt > $highest_low_dt)
229 5 0 if ($dt < $lowest_high_dt)
236 3 11 if ($lowest_high_dt < 9.8e+99 and $highest_low_dt > 1e-99) { }
238 0 3 if ($highest_low_dt == 0 or $highest_low_error == 0 or $denom == 0) { }
246 4 7 if (abs $adjust > 2) { }
253 0 14 if ($resizings > 4 and $highest_low_dt > 1e-99)
267 9 10 if (ref $arg4 eq 'HASH') { }
271 0 10 unless ($epsilon)
286 13 20 if ($epsilon) { }
20 0 elsif (%errors) { }
290 20 6 if ($errmax < $diff)
291 15 11 if ($ymax < abs ${$ynref;}{$i})
298 31 9 if ($relative_error < $diff)
305 9 24 if ($relative_error < 0.6) { }
5 19 elsif ($relative_error > 1.67) { }
306 9 0 if ($dt > $highest_low_dt)
311 5 0 if ($dt < $lowest_high_dt)
318 3 11 if ($lowest_high_dt < 9.8e+99 and $highest_low_dt > 1e-99) { }
320 0 3 if ($highest_low_dt == 0 or $highest_low_error == 0 or $denom == 0) { }
328 4 7 if (abs $adjust > 2) { }
335 0 14 if ($resizings > 4 and $highest_low_dt > 1e-99)
353 19 19 if (@y2) { }
359 0 32 if (ref $dydtref ne 'CODE')
364 16 16 if (ref $ynref eq 'ARRAY') { }
16 0 elsif (ref $ynref eq 'HASH') { }
429 0 32 if (ref $dydtref ne 'CODE')
434 16 16 if (ref $ynref eq 'ARRAY') { }
16 0 elsif (ref $ynref eq 'HASH') { }
498 0 0 if (not $flag) { }