Branch Coverage

blib/lib/Math/PlanePath/SquareSpiral.pm
Criterion Covered Total %
branch 27 36 75.0


line true false branch
105 0 0 $self->{'wider'} ? :
131 16 2 unless (defined $self->{'n_start'})
191 0 372 if ($n < 0)
199 42 330 if ($n <= $w + 1)
216 167 163 if ($n >= 0) { }
217 94 73 if ($n <= 2 * $d) { }
227 87 76 if ($n >= -2 * $d - $w) { }
252 6 21 if (($d = $x - $w_right) > abs $y)
267 4 17 if (($d = -$x - $w_left) > abs $y)
282 8 9 if ($y > 0)
390 2 116 if ($n < 0)
408 70 46 if ($int <= 0) { }
409 66 4 if ($int < 0) { }
419 43 3 if ($int < $d) { }
430 48 68 unless ($d % 2)
468 0 0 if ($n < 1)
473 0 0 if ($n <= $wider)
486 0 0 if ($n > $d * ($d + 1 + $wider))