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 1601 11612 if ($digit == 0) { }
5610 6002 elsif ($digit == 1) { }
3493 2509 elsif ($digit == 2) { }
264 3267 4229 if ($arm & 1)
267 2743 4753 if ($arm & 2)
270 1807 5689 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 27207 30689 if ($y < 0)
445 28811 29085 if ($x < 0)
449 25619 32277 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 33045 2746 if ($x < $len_sub_d) { }
492 26449 6596 if ($x + $y + $s < $len) { }
502 1861 885 if ($x < $y) { }
511 376 2370 if ($x < 0)
523 1793 27527 if ($y == 0 and $x == 0) { }
1767 25760 elsif ($x == $d and $y == $d) { }
1607 24153 elsif ($x == $d + $s and $y == $d) { }
1279 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))