Branch Coverage

blib/lib/Math/PlanePath/SierpinskiCurveStair.pm
Criterion Covered Total %
branch 50 66 75.7


line true false branch
205 0 19 if ($n < 0)
208 0 19 if (is_infinite($n))
216 0 19 if ($frac)
237 0 19 if (is_infinite($level))
253 19 33 if ($n < 2 * $nlen + 1) { }
254 1 18 if ($n < $nlen) { }
265 0 33 if ($n < $nlen) { }
283 5 14 if ($n == 2 * $diagonal_length + 1)
293 0 19 if ($arm & 1)
296 0 19 if ($arm & 2)
299 0 19 if ($arm & 4)
315 2720 17056 if ($y < 0)
320 4608 15168 if ($x < 0)
324 9344 10432 if ($y > $x)
330 3680 16096 if ($arm >= $arms)
335 1008 15088 if ($x < 0 or $x < $y)
354 0 15088 if (is_infinite($level))
370 20665 16845 if ($x + $y <= 2 * $len - 2) { }
372 6256 14409 if ($x < $len - 1) { }
384 8671 8174 if ($y < $len) { }
394 81 16764 if ($x < 0)
406 8932 6075 if ($x == $y or $x == $y + 1) { }
458 5617 elsif ($n_last_1 and $x == $diagonal_length - 1 and $y == $diagonal_length) { }
427 0 32 if $x1 > $x2
428 0 32 if $y1 > $y2
451 16 16 $arms <= 4 ? :
0 16 if ($arms <= 4 ? $y2 < 0 || $arms == 1 && $x2 <= $y1 || $arms == 2 && $x2 < 0 || $arms == 3 && $x2 < -$y2 : $y2 < 0 && ($arms == 5 && $x1 >= $y2 || $arms == 6 && $x1 >= 0 || $arms == 7 && $x1 > 3 - $y2))
469 28 4 if ($arms >= 2)
473 20 8 if ($arms >= 4)
477 12 8 if ($arms >= 6)
508 28 32 unless ($_[0] > $_[1])
532 0 0 if ($n < 0)
533 0 0 if (is_infinite($n))