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 35 337 if ($n <= $w + 1)
216 146 191 if ($n >= 0) { }
217 69 77 if ($n <= 2 * $d) { }
227 105 86 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 76 40 if ($int <= 0) { }
409 69 7 if ($int < 0) { }
419 35 5 if ($int < $d) { }
430 45 71 unless ($d % 2)
468 0 0 if ($n < 1)
473 0 0 if ($n <= $wider)
486 0 0 if ($n > $d * ($d + 1 + $wider))