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)
195 0 54 if ($n < 0)
196 0 54 if (is_infinite($n))
202 0 54 if ($n != $int)
221 0 54 if ($parts eq '2') { }
8 46 elsif ($parts == 3) { }
11 35 elsif ($parts == 4) { }
222 0 0 if ($n == 0)
250 0 0 if ($quadrant)
254 2 6 if ($n <= 1)
281 2 4 if ($quadrant == 0) { }
2 2 elsif ($quadrant == 2) { }
292 3 8 if ($n <= 2)
293 1 2 if ($n == 0)
294 1 1 if ($n == 1)
370 55 90 if ($n < $part_n)
379 25 65 if ($n == 0)
383 24 41 if ($n == 1)
391 16 25 if ($n < $part_n)
401 9 16 if ($n < $part_n)
427 0 0 if ($rotated)
434 0 0 if (is_infinite($level))
443 0 0 if ($parts == 2) { }
0 0 elsif ($parts == 3) { }
0 0 elsif ($parts == 4) { }
444 0 0 if ($x == 0)
445 0 0 if ($y == 1)
448 0 0 if ($x < 0)
455 0 0 if ($x == 0)
456 0 0 if ($y == 0)
457 0 0 if ($y == 1)
460 0 0 if ($rotated) { }
0 0 elsif ($x < 0) { }
464 0 0 if ($y > 0) { }
471 0 0 if ($x == 0)
472 0 0 if ($y == 0)
473 0 0 if ($y == 1)
474 0 0 if ($y == -1)
477 0 0 if ($x < 0) { }
479 0 0 if ($y > 0) { }
486 0 0 if ($y < 0)
519 0 0 if ($x == $len)
520 0 0 if ($y == $len)
524 0 0 if ($y == $len + 1)
530 0 0 if ($y <= $len) { }
531 0 0 if ($x < $len) { }
540 0 0 if ($x > $len) { }
557 0 0 if ($x == 1)
558 0 0 if ($y == 1) { }
0 0 elsif ($y == 2) { }
599 0 0 if ($n < 0)
600 0 0 if (is_infinite($n))
616 0 0 if (ref $_[0] and $_[0]->isa('Math::BigInt')) { }
618 0 0 if (not ref $d or $d < 1000000)