Branch Coverage

blib/lib/Math/PlanePath/KochCurve.pm
Criterion Covered Total %
branch 52 80 65.0


line true false branch
101 0 1456 if (2 * $n < -1)
102 0 1456 if (is_infinite($n))
117 1224 4966 if ($digit == 0) { }
1675 3291 elsif ($digit == 1) { }
1667 1624 elsif ($digit == 2) { }
144 252 5128 if ($y < 0 or $x < 0 or ($x ^ $y) & 1)
151 0 5128 if (is_infinite($level))
159 8597 7915 if ($x < 3 * $len) { }
160 6163 2434 if ($x < 2 * $len) { }
172 3456 4459 if ($x < $y) { }
187 4947 181 if ($x != 0 or $y != 0)
205 0 29 if ($x1 > $x2)
206 0 29 if ($y1 > $y2)
208 0 29 if ($x2 < 0 or $y2 < 0 or 3 * $y1 > $x2)
255 144 152 if ($len == 1)
261 121 31 if ($rot < 3) { }
262 57 64 if ($rot == 0) { }
50 14 elsif ($rot == 1) { }
294 2 29 if ($rot == 3) { }
1 28 elsif ($rot == 4) { }
341 2 168 if ($digit < 0)
343 0 2 unless (@digits)
360 64 104 if (&$overlap()) { }
361 29 35 if ($#digits >= $level_max)
386 1 128 if ($digit > 3)
388 0 1 unless (@digits)
401 63 65 if (&$overlap()) { }
402 29 34 if ($#digits >= $level_max)
437 0 20 if ($n < 0)
440 0 20 if (is_infinite($n))
452 12 8 if ($n)
466 0 0 if ($n < 0)
469 0 0 if (is_infinite($n))
483 0 0 if (is_infinite($n))
488 0 0 if ($digit)
498 0 0 $turn6 > 0 ? :
503 0 0 $turn6 > 0 ? :
508 0 0 $turn6 < 0 ? :
520 0 0 if ($n < 0)
521 0 0 if (is_infinite($n))