Condition Coverage

blib/lib/Math/PlanePath/KochCurve.pm
Criterion Covered Total %
condition 35 52 67.3


and 3 conditions

line !l l&&!r l&&r condition
256 63 4 58 $x >= $x1 && $x <= $x2 && $y >= $y1 && $y <= $y2
266 33 6 16 $y <= $y2 && $y + $len >= $y1 && $x <= $x2 && $x + 6 * $len > $x1
278 10 7 22 $x <= $x2 && $y + 3 * $len > $y1 && $y - $x <= $y2 - $x1
289 7 1 11 $y <= $y2 && $x - 3 * $len <= $x2 && $y + $x >= $y1 + $x1
298 0 1 4 $y >= $y1 && $y - $len <= $y2 && $x >= $x1 && $x - 6 * $len < $x2
310 3 5 5 $x >= $x1 && $y - 3 * $len < $y2 && $y - $x >= $y1 - $x2
321 12 11 28 $y >= $y1 && $x + 3 * $len >= $x1 && $y + $x <= $y2 + $x2

or 2 conditions

line l !l condition
148 5074 54 $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)

or 3 conditions

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 41 0 $lens[$#digits] ||= $len / 3
411 43 0 0 $lens[$#digits] ||= $len / 3