Branch Coverage

blib/lib/Math/PlanePath/HypotOctant.pm
Criterion Covered Total %
branch 16 40 40.0


line true false branch
78 3 3 $self->{'points'} eq 'odd' ? :
91 0 0 $self->{'points'} eq 'all' ? :
98 0 0 $self->{'points'} eq 'all' ? :
119 3 3 if ($points eq 'all') { }
1 2 elsif ($points eq 'even') { }
2 0 elsif ($points eq 'odd') { }
176 1157 62325 if ($hypot == $y_next_hypot->[$i]) { }
4158 58167 elsif ($hypot > $y_next_hypot->[$i]) { }
184 134 2039 if ($y[-1] == $#$y_next_x)
215 0 3000 if ($n < 1)
216 0 3000 if (is_infinite($n))
220 0 3000 if ($n != $int)
248 0 0 if (($x % 2 ^ $y % 2) == $self->{'opposite_parity'})
253 0 0 if (is_infinite($hypot))
257 0 0 if ($x < 0 or $y < 0 or $y > $x)
272 0 0 if ($x == $n_to_x->[$n] and $y == $n_to_y->[$n])
277 0 0 if ($n_to_x->[$n] ** 2 + $n_to_y->[$n] ** 2 != $hypot)
292 0 0 if ($x1 > $x2)
293 0 0 if ($y1 > $y2)
295 0 0 if ($x2 < 0 or $y2 < 0)