Branch Coverage

blib/lib/Math/PlanePath/SierpinskiCurve.pm
Criterion Covered Total %
branch 56 102 54.9


line true false branch
97 0 0 $self->arms_count >= 3 ? :
101 0 0 $self->arms_count >= 5 ? :
134 0 0 $self->arms_count == 1 ? :
159 0 0 $d ? :
0 0 $s ? :
0 0 $d ? :
0 0 $s ? :
0 0 $d ? :
0 0 $s ? :
0 0 $d ? :
210 0 7496 if ($n < 0)
213 0 7496 if (is_infinite($n))
233 1754 11825 if ($digit == 0) { }
5700 6125 elsif ($digit == 1) { }
3552 2573 elsif ($digit == 2) { }
260 3248 4248 if ($arm & 1)
263 2768 4728 if ($arm & 2)
266 1781 5715 if ($arm & 4)
293 0 0 if ($n < 0)
305 0 0 if (is_infinite($int))
312 0 0 if ($arm & 1)
318 0 0 if ($n or $lowbit)
323 0 0 if ($arm & 1)
328 0 0 if ($lowbit)
336 0 0 $dir8 & 1 ? :
340 0 0 if ($n)
343 0 0 $dir8 & 1 ? :
411 122 241 $arms <= 4 ? :
436 27206 30690 if ($y < 0)
441 28816 29080 if ($x < 0)
445 25610 32286 if ($y > $x)
451 24000 33896 if ($arm >= $arms)
456 4200 29696 if ($x < 0 or $x < $y)
469 0 29696 if (is_infinite($level))
486 33042 2743 if ($x < $len_sub_d) { }
488 26437 6605 if ($x + $y + $s < $len) { }
498 1859 884 if ($x < $y) { }
507 376 2367 if ($x < 0)
519 1797 27523 if ($y == 0 and $x == 0) { }
1762 25761 elsif ($x == $d and $y == $d) { }
1609 24152 elsif ($x == $d + $s and $y == $d) { }
1278 22874 elsif ($x == $base and $y == 0) { }
546 0 363 if $x1 > $x2
547 1 362 if $y1 > $y2
550 9 354 unless (_rect_within_arms($x1, $y1, $x2, $y2, $arms))
556 307 47 if ($arms >= 3)
559 237 70 if ($arms >= 5)
562 135 102 if ($arms >= 7)
585 277 402 unless ($_[0] > $_[1])
598 0 0 if ($n < 0)
599 0 0 if (is_infinite($n))