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 1213 4925 if ($digit == 0) { }
1691 3234 elsif ($digit == 1) { }
1636 1598 elsif ($digit == 2) { }
144 252 5128 if ($y < 0 or $x < 0 or ($x ^ $y) & 1)
151 0 5128 if (is_infinite($level))
159 8604 7918 if ($x < 3 * $len) { }
160 6167 2437 if ($x < 2 * $len) { }
172 3460 4458 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 202 if ($len == 1)
261 153 49 if ($rot < 3) { }
262 75 78 if ($rot == 0) { }
55 23 elsif ($rot == 1) { }
294 8 41 if ($rot == 3) { }
3 38 elsif ($rot == 4) { }
341 2 200 if ($digit < 0)
343 0 2 unless (@digits)
360 74 126 if (&$overlap()) { }
361 29 45 if ($#digits >= $level_max)
386 1 146 if ($digit > 3)
388 0 1 unless (@digits)
401 73 73 if (&$overlap()) { }
402 29 44 if ($#digits >= $level_max)
437 0 20 if ($n < 0)
440 0 20 if (is_infinite($n))
452 17 3 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))