blib/lib/Math/PlanePath/KochCurve.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 34 | 52 | 65.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
256 | 57 | 4 | 58 | $x >= $x1 && $x <= $x2 && $y >= $y1 && $y <= $y2 |
266 | 36 | 5 | 30 | $y <= $y2 && $y + $len >= $y1 && $x <= $x2 && $x + 6 * $len > $x1 |
278 | 21 | 6 | 28 | $x <= $x2 && $y + 3 * $len > $y1 && $y - $x <= $y2 - $x1 |
289 | 10 | 3 | 10 | $y <= $y2 && $x - 3 * $len <= $x2 && $y + $x >= $y1 + $x1 |
298 | 2 | 0 | 2 | $y >= $y1 && $y - $len <= $y2 && $x >= $x1 && $x - 6 * $len < $x2 |
310 | 0 | 2 | 1 | $x >= $x1 && $y - 3 * $len < $y2 && $y - $x >= $y1 - $x2 |
321 | 3 | 17 | 18 | $y >= $y1 && $x + 3 * $len >= $x1 && $y + $x <= $y2 + $x2 |
line | l | !l | condition |
---|---|---|---|
148 | 5075 | 53 | $x / 2 || 1 |
472 | 0 | 0 | &sum(map({$digit_to_dir[$_];} digit_split_lowtohigh($n, 4))) || 0 |
497 | 0 | 0 | $self->_UNTESTED__n_to_turn6($n) || (return undef) |
502 | 0 | 0 | $self->_UNTESTED__n_to_turn6($n) || (return undef) |
507 | 0 | 0 | $self->_UNTESTED__n_to_turn6($n) || (return undef) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
144 | 265 | 252 | 5128 | $y < 0 or $x < 0 |
517 | 0 | 5128 | $y < 0 or $x < 0 or ($x ^ $y) & 1 | |
187 | 4804 | 143 | 181 | $x != 0 or $y != 0 |
208 | 0 | 0 | 29 | $x2 < 0 or $y2 < 0 |
0 | 0 | 29 | $x2 < 0 or $y2 < 0 or 3 * $y1 > $x2 | |
370 | 2 | 43 | 0 | $lens[$#digits] ||= $len / 3 |
411 | 44 | 0 | 0 | $lens[$#digits] ||= $len / 3 |