Branch Coverage

blib/lib/Math/PlanePath/FlowsnakeCentres.pm
Criterion Covered Total %
branch 78 96 81.2


line true false branch
211 0 9488 if ($n < 0)
212 0 9488 if (is_infinite($n))
225 63 9425 if ($n != $int)
268 19583 23566 if ($rev)
279 9425 0 if ($rot == 0) { }
0 0 elsif ($rot == 1) { }
300 16984 26165 if ($digit == 0) { }
5543 20622 elsif ($digit == 1) { }
3985 16637 elsif ($digit == 2) { }
2818 13819 elsif ($digit == 3) { }
3185 10634 elsif ($digit == 4) { }
2861 7773 elsif ($digit == 5) { }
7773 0 elsif ($digit == 6) { }
356 0 0 if ($self->{'arms'} == 3) { }
394 0 164 if (($x ^ $y) & 1)
400 0 164 if (is_infinite($level_limit))
406 0 732 if ($level_limit-- < 0)
410 161 571 if ($x == 0 and $y == 0)
416 2 569 if ($x == -2 and $y == 0)
422 1 568 if ($x == -1 and $y == -1)
440 126 442 if ($m == 2) { }
97 345 elsif ($m == 3) { }
74 271 elsif ($m == 1) { }
78 193 elsif ($m == 4) { }
61 132 elsif ($m == 6) { }
70 62 elsif ($m == 5) { }
471 1 163 if ($arm >= $arms)
503 0 137 if (is_infinite($level_limit))
509 3 134 if $x1 > $x2
510 0 137 if $y1 > $y2
515 9991 917 $x > $x2 ? :
8369 10908 $x < $x1 ? :
518 8868 1066 $y > $y2 ? :
9343 9934 $y < $y1 ? :
534 276 141 if ($top > 0) { }
550 139 9556 if ($i == 0 and $nh == 0)
552 137 2 if (not defined $n_lo or $n < $n_lo)
558 8967 589 if ($i == 0 or $nh > $hypot[$i]) { }
563 1040 278 if (++$i <= $top) { }
580 137 275 if (defined $n_lo)
585 0 275 if (++$top > $level_limit)
607 139 9443 if ($i == 0 and $nh == 0)
609 131 8 if ($n > $n_hi)
615 8063 1388 if ($i == 0 or $nh > 6 * 7 ** $i) { }
620 856 10 if (++$i < $level_limit) { }
637 7 130 if ($n_hi == 0)
662 0 0 if ($n < 0)
663 0 0 if (is_infinite($n))