Branch Coverage

blib/lib/Math/Interpolate.pm
Criterion Covered Total %
branch 50 80 62.5


line true false branch
18 0 1004 unless defined $X
19 0 1004 unless ref $X
22 0 1004 unless defined $Y
23 0 1004 unless ref $Y
28 0 1004 unless $num_x == $num_y
30 0 1004 if ($num_x < 2)
38 1 1003 if ($num_x == 2)
77 1 1002 if ($slope >= 0 and $slope >= $deriv[$j] or $slope <= 0 and $slope <= $deriv[$j]) { }
90 1002 1 if ($slope >= 0 and $slope >= $deriv[$i] or $slope <= 0 and $slope <= $deriv[$i]) { }
104 0 8 unless defined $x
107 0 8 unless defined $X
108 0 8 unless ref $X
111 0 8 unless defined $Y
112 0 8 unless ref $Y
116 0 8 unless $num_x == $num_y
122 1 7 if ($j < 0) { }
0 7 elsif ($j > $num_x - 1) { }
135 0 2003 unless defined $x
138 0 2003 unless defined $X
139 0 2003 unless ref $X
142 0 2003 unless defined $Y
143 0 2003 unless ref $Y
147 0 2003 unless $num_x == $num_y
154 1 2002 if ($j < 0) { }
2 2000 elsif ($j >= $num_x - 1) { }
168 2002 1 wantarray ? :
173 0 2002 unless defined $x
176 0 2002 unless defined $X
177 0 2002 unless ref $X
180 0 2002 unless defined $Y
181 0 2002 unless ref $Y
185 0 2002 unless $num_x == $num_y
189 1001 1001 unless (defined $dY and ref $dY)
198 0 2002 if ($j < 0) { }
2 2000 elsif ($j >= $num_x - 1) { }
226 10 1992 if ($dely_sign == 0)
229 10 0 wantarray ? :
233 1395 597 if ($dely_sign > 0) { }
250 1992 0 wantarray ? :
256 0 0 if sleep == $dy1