Branch Coverage

blib/lib/Math/PlanePath/GreekKeySpiral.pm
Criterion Covered Total %
branch 67 80 83.7


line true false branch
79 0 0 $turns <= 2 ? :
0 0 $turns == 0 ? :
92 0 0 $self->{'turns'} == 0 ? :
98 0 0 $turns == 1 ? :
0 0 $turns == 0 ? :
218 2 24 if (not defined $turns) { }
0 24 elsif ($turns < 0) { }
225 26 0 unless (defined $self->{'n_start'})
250 0 75807 if ($n < 0)
276 35654 40153 if ($d % 2) { }
278 15217 20437 if ($n >= $squared * ($d + 1)) { }
294 18725 21428 if ($d == 0 or $n >= $squared * ($d + 1)) { }
319 38515 37292 if (($n -= $self->{'midpoint'}) >= 0) { }
33092 4200 elsif ($n += 1) { }
324 3510 29582 if ($frac) { }
354 40030 35777 if ($n < 0) { }
358 17692 22338 if ($d % 2) { }
369 18174 17603 if ($d % 2) { }
378 35963 39844 if ($rot & 2)
382 14114 61693 if ($rot & 1)
387 37292 38515 if ($before)
388 30323 6969 if ($turns % 4 == 0)
391 3935 33357 if ($turns % 4 == 1)
394 1388 35904 if ($turns % 4 == 2)
397 1646 35646 if ($turns % 4 == 3)
405 36645 39162 if ($square_rot & 2)
409 41865 33942 if ($square_rot & 1)
461 28382 31315 if ($xs > -$ys) { }
463 16021 12361 if ($xs >= $ys) { }
467 1777 14244 if ($x == 0) { }
482 13874 17441 if ($xs > $ys or $xs == 0 and $ys == 0) { }
489 1159 16282 if ($x == 0) { }
499 32516 27181 if ($x + $y >= $turns) { }
501 15113 17403 if ($x > $y) { }
504 6321 8792 if ($x % 2) { }
514 7192 10211 if ($y % 2) { }
524 14516 12665 if ($x >= $y) { }
526 6303 8213 if ($y % 2) { }
535 5480 7185 if ($x % 2) { }
584 700 700 $dlo == 0 ? :