Branch Coverage

blib/lib/Math/PlanePath/Hypot.pm
Criterion Covered Total %
branch 19 50 38.0


line true false branch
96 0 0 $self->{'points'} eq 'odd' ? :
117 1 9 unless (defined $self->{'n_start'})
122 4 6 if ($points eq 'all') { }
3 3 elsif ($points eq 'even') { }
3 0 elsif ($points eq 'odd') { }
0 0 elsif ($points eq 'square_centred') { }
195 324 10425 if ($hypot == $y_next_hypot->[$y]) { }
1512 8913 elsif ($hypot > $y_next_hypot->[$y]) { }
207 141 876 if ($y[-1] == $#$y_next_x)
236 126 891 unless ($y[0])
240 87 930 if ($x[-1] == $y[-1])
287 0 9009 if ($n < 0)
288 0 9009 if (is_infinite($n))
309 0 0 if ($self->{'opposite_parity'} >= 0)
312 0 0 if (($x % 2 ^ $y % 2) == $self->{'opposite_parity'})
316 0 0 if ($self->{'points'} eq 'square_centred')
317 0 0 unless ($y % 2 and $x % 2)
332 0 0 if (($x % 2 ^ $y % 2) == $self->{'opposite_parity'})
335 0 0 if ($self->{'points'} eq 'square_centred')
336 0 0 unless ($y % 2 and $x % 2)
342 0 0 if (is_infinite($hypot))
357 0 0 if ($x == $n_to_x->[$n] and $y == $n_to_y->[$n])
362 0 0 if ($n_to_x->[$n] ** 2 + $n_to_y->[$n] ** 2 != $hypot)
388 0 0 if ($x1 > $x2)
389 0 0 if ($y1 > $y2)