Condition Coverage

blib/lib/Collision/2D/Entity/Circle.pm
Criterion Covered Total %
condition 59 67 88.0


and 3 conditions

line !l l&&!r l&&r condition
76 314 186 300 $x > 0 and $y > 0
500 140 160 $x > 0 and $y > 0 and $x < $w
326 64 96 $x > 0 and $y > 0 and $x < $w and $y < $h
98 31 13 0 $x1 > $r and $x2 > $r
101 42 2 0 $x1 + $w < -$r and $x2 + $w < -$r
104 16 27 1 $y1 > $r and $y2 > $r
107 35 8 0 $y1 + $h < -$r and $y2 + $h < -$r
161 38 0 2 $x1 + $w < -$r and $x2 + $w > -$r
165 27 0 13 $x1 > $r and $x2 < $r
169 32 0 8 $y1 + $h < -$r and $y2 + $h > -$r
173 13 0 27 $y1 > $r and $y2 < $r
249 81 9 21 $_ <= $x1 and $_ >= $x2
30 81 53 $_ >= $x1 and $_ <= $x2

or 2 conditions

line l !l condition
18 44 135 $params{'x'} || 0
45 134 $params{'y'} || 0
10 169 $params{'xv'} || 0
29 150 $params{'yv'} || 0
124 55 $params{'relative_x'} || 0
124 55 $params{'relative_y'} || 0
60 119 $params{'relative_xv'} || 0
117 62 $params{'relative_yv'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
60 1 1 792 $x - $r > $w or $y - $r > $h
2 1 791 $x - $r > $w or $y - $r > $h or $x + $r < 0
2 1 790 $x - $r > $w or $y - $r > $h or $x + $r < 0 or $y + $r < 0
228 67 0 86 $x2 - $x1 == 0 or abs(($y2 - $y1) / ($x2 - $x1)) > 100