blib/lib/Math/PlanePath/SierpinskiCurve.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 27 | 35 | 77.1 |
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 | 19496 | 8031 | 1793 | $y == 0 and $x == 0 |
22654 | 3106 | 1767 | $x == $d and $y == $d | |
20283 | 3870 | 1607 | $x == $d + $s and $y == $d | |
21788 | 1086 | 1279 | $x == $base and $y == 0 |
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 | 28788 | 908 | ($x + $y) / $base || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
322 | 0 | 0 | 0 | $n or $lowbit |
415 | 145 | 0 | 96 | $y2 >= 0 || ($arms <= 6 ? $arms == 5 ? $x1 < $y2 : $x1 < 0 : $arms == 8 || $x1 <= -2 - $y1) |
460 | 500 | 3700 | 29696 | $x < 0 or $x < $y |