Branch Coverage

blib/lib/Math/PlanePath/ToothpickReplicate.pm
Criterion Covered Total %
branch 31 110 28.1


line true false branch
44 0 14 if (ref $n and $n->isa('Math::BigInt'))
46 0 0 if (not ref $d or $d < 1000000)
194 0 54 if ($n < 0)
195 0 54 if (is_infinite($n))
201 0 54 if ($n != $int)
220 0 54 if ($parts eq '2') { }
8 46 elsif ($parts == 3) { }
11 35 elsif ($parts == 4) { }
221 0 0 if ($n == 0)
249 0 0 if ($quadrant)
253 2 6 if ($n <= 1)
280 2 4 if ($quadrant == 0) { }
2 2 elsif ($quadrant == 2) { }
291 3 8 if ($n <= 2)
292 1 2 if ($n == 0)
293 1 1 if ($n == 1)
369 55 90 if ($n < $part_n)
378 25 65 if ($n == 0)
382 24 41 if ($n == 1)
390 16 25 if ($n < $part_n)
400 9 16 if ($n < $part_n)
426 0 0 if ($rotated)
433 0 0 if (is_infinite($level))
442 0 0 if ($parts == 2) { }
0 0 elsif ($parts == 3) { }
0 0 elsif ($parts == 4) { }
443 0 0 if ($x == 0)
444 0 0 if ($y == 1)
447 0 0 if ($x < 0)
454 0 0 if ($x == 0)
455 0 0 if ($y == 0)
456 0 0 if ($y == 1)
459 0 0 if ($rotated) { }
0 0 elsif ($x < 0) { }
463 0 0 if ($y > 0) { }
470 0 0 if ($x == 0)
471 0 0 if ($y == 0)
472 0 0 if ($y == 1)
473 0 0 if ($y == -1)
476 0 0 if ($x < 0) { }
478 0 0 if ($y > 0) { }
485 0 0 if ($y < 0)
518 0 0 if ($x == $len)
519 0 0 if ($y == $len)
523 0 0 if ($y == $len + 1)
529 0 0 if ($y <= $len) { }
530 0 0 if ($x < $len) { }
539 0 0 if ($x > $len) { }
556 0 0 if ($x == 1)
557 0 0 if ($y == 1) { }
0 0 elsif ($y == 2) { }
589 0 0 if ($n < 0)
590 0 0 if (is_infinite($n))
603 0 0 if (ref $_[0] and $_[0]->isa('Math::BigInt')) { }
605 0 0 if (not ref $d or $d < 1000000)