Condition Coverage

blib/lib/Collision/2D/Entity/Rect.pm
Criterion Covered Total %
condition 41 60 68.3


and 3 conditions

line !l l&&!r l&&r condition
31 0 0 4 $self->x < $other->x + $other->w && $self->y < $other->y + $other->h && $self->x + $self->w > $other->x && $self->y + $self->h > $other->y
51 15 9 16 $y1 + $sh > 0 and $x1 + $sw > 0
24 7 9 $y1 + $sh > 0 and $x1 + $sw > 0 and $x1 < $ow
16 1 8 $y1 + $sh > 0 and $x1 + $sw > 0 and $x1 < $ow and $y1 < $oh
58 17 15 0 $x1 + $sw < 0 and $x2 + $sw < 0
17 15 0 $x1 > $ow and $x2 > $ow
17 15 0 $y1 + $sh < 0 and $y2 + $sh < 0
17 15 0 $y1 > $oh and $y2 > $oh
69 4 5 6 $yatt + $sh > 0 and $yatt < $oh
78 4 5 6 $xatt + $sw > 0 and $xatt < $ow
88 4 4 7 $yatt + $sh > 0 and $yatt < $oh
98 4 4 7 $xatt + $sw > 0 and $xatt < $ow
118 0 0 0 $point->x > $self->x && $point->y > $self->y && $point->x < $self->x + $self->w && $point->y < $self->y + $self->h

or 2 conditions

line l !l condition
15 24 836 $params{'xv'} || 0
22 838 $params{'yv'} || 0
0 860 $params{'relative_x'} || 0
0 860 $params{'relative_y'} || 0
0 860 $params{'relative_xv'} || 0
0 860 $params{'relative_yv'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
58 0 0 32 $x1 + $sw < 0 and $x2 + $sw < 0 or $x1 > $ow and $x2 > $ow
0 0 32 $x1 + $sw < 0 and $x2 + $sw < 0 or $x1 > $ow and $x2 > $ow or $y1 + $sh < 0 and $y2 + $sh < 0
0 0 32 $x1 + $sw < 0 and $x2 + $sw < 0 or $x1 > $ow and $x2 > $ow or $y1 + $sh < 0 and $y2 + $sh < 0 or $y1 > $oh and $y2 > $oh