Branch Coverage

blib/lib/Math/PlanePath/KnightSpiral.pm
Criterion Covered Total %
branch 39 76 51.3


line true false branch
83 3 0 unless (defined $self->{'n_start'})
94 0 985 if ($n > 1) { }
109 1 999 if ($n < 2)
110 0 1 if ($n < 1)
137 64 935 if ($n < $p1)
144 64 871 if ($n < $p1)
151 72 799 if ($n < $p)
158 64 735 if ($n < $p1)
169 64 671 if ($n < $p1)
176 72 599 if ($n < $p)
183 64 535 if ($n < $p1)
190 64 471 if ($n < $p1)
201 72 399 if ($n < $p)
208 64 335 if ($n < $p1)
215 55 280 if ($n < $p1)
222 49 231 if ($n < $p1)
232 14 217 if ($n <= 1)
237 42 175 if ($n < $p)
244 56 119 if ($n < $p)
251 56 63 if ($n < $p)
258 56 7 if ($n < $p)
289 0 0 if ($x == 0 and $y == 0)
299 0 0 if ($y >= $r)
314 0 0 if (($x ^ $y ^ $d) & 1) { }
315 0 0 if ($xodd) { }
321 0 0 if ($xodd) { }
333 0 0 if ($x >= $r and $x != -$y)
349 0 0 if (($x ^ $y ^ $d) & 1) { }
350 0 0 if ($yodd) { }
356 0 0 if ($yodd) { }
364 0 0 if ($y <= -$r)
380 0 0 if (($x ^ $y ^ $d) & 1) { }
381 0 0 if ($xodd) { }
387 0 0 if ($xodd) { }
395 0 0 if ($x <= -$r)
411 0 0 if (($x ^ $y ^ $d) & 1) { }
412 0 0 if ($yodd) { }
418 0 0 if ($yodd) { }