Branch Coverage

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


line true false branch
101 0 0 $self->arms_count >= 3 ? :
105 0 0 $self->arms_count >= 5 ? :
138 0 0 $self->arms_count == 1 ? :
163 0 0 $d ? :
0 0 $s ? :
0 0 $d ? :
0 0 $s ? :
0 0 $d ? :
0 0 $s ? :
0 0 $d ? :
214 0 7496 if ($n < 0)
217 0 7496 if (is_infinite($n))
237 1741 11818 if ($digit == 0) { }
5757 6061 elsif ($digit == 1) { }
3652 2409 elsif ($digit == 2) { }
264 3221 4275 if ($arm & 1)
267 2773 4723 if ($arm & 2)
270 1808 5688 if ($arm & 4)
297 0 0 if ($n < 0)
309 0 0 if (is_infinite($int))
316 0 0 if ($arm & 1)
322 0 0 if ($n or $lowbit)
327 0 0 if ($arm & 1)
332 0 0 if ($lowbit)
340 0 0 $dir8 & 1 ? :
344 0 0 if ($n)
347 0 0 $dir8 & 1 ? :
415 122 241 $arms <= 4 ? :
440 27203 30693 if ($y < 0)
445 28816 29080 if ($x < 0)
449 25613 32283 if ($y > $x)
455 24000 33896 if ($arm >= $arms)
460 4200 29696 if ($x < 0 or $x < $y)
473 0 29696 if (is_infinite($level))
490 33055 2762 if ($x < $len_sub_d) { }
492 26453 6602 if ($x + $y + $s < $len) { }
502 1880 882 if ($x < $y) { }
511 376 2386 if ($x < 0)
523 1795 27525 if ($y == 0 and $x == 0) { }
1765 25760 elsif ($x == $d and $y == $d) { }
1608 24152 elsif ($x == $d + $s and $y == $d) { }
1278 22874 elsif ($x == $base and $y == 0) { }
550 0 363 if $x1 > $x2
551 1 362 if $y1 > $y2
554 9 354 unless (_rect_within_arms($x1, $y1, $x2, $y2, $arms))
560 307 47 if ($arms >= 3)
563 237 70 if ($arms >= 5)
566 135 102 if ($arms >= 7)
589 273 406 unless ($_[0] > $_[1])
602 0 0 if ($n < 0)
603 0 0 if (is_infinite($n))