Condition Coverage

blib/lib/Math/PlanePath/SierpinskiCurve.pm
Criterion Covered Total %
condition 27 35 77.1


and 3 conditions

line !l l&&!r l&&r condition
376 0 0 0 _rect_within_arms($x, $y, $x, $y, $self->{'arms'}) && $x % $mod + $y % $mod & 1
415 1 121 0 $y2 >= 0 && ($arms <= 2 ? $arms == 1 ? $x2 > $y1 : $x2 >= 0 : $arms == 4 || $x2 >= -$y2)
523 19495 8030 1795 $y == 0 and $x == 0
22654 3106 1765 $x == $d and $y == $d
20282 3870 1608 $x == $d + $s and $y == $d
21788 1086 1278 $x == $base and $y == 0

or 2 conditions

line l !l condition
204 251 5 $self->{'arms'} || 1
205 160 96 $self->{'straight_spacing'} ||= 1
206 160 96 $self->{'diagonal_spacing'} ||= 1
470 28787 909 ($x + $y) / $base || 1

or 3 conditions

line l !l&&r !l&&!r condition
322 0 0 0 $n or $lowbit
415 149 0 92 $y2 >= 0 || ($arms <= 6 ? $arms == 5 ? $x1 < $y2 : $x1 < 0 : $arms == 8 || $x1 <= -2 - $y1)
460 500 3700 29696 $x < 0 or $x < $y