Condition Coverage

blib/lib/SDLx/Rect.pm
Criterion Covered Total %
condition 22 107 20.5


and 3 conditions

line !l l&&!r l&&r condition
266 0 0 1 defined $x and defined $y
281 0 0 0 defined $x and defined $y
294 0 0 1 defined $x and defined $y
310 0 0 0 defined $x and defined $y
373 0 0 0 $self->x >= $rect->x and $self->x < $rect->x + $rect->w
0 0 0 $rect->x >= $self->x and $rect->x < $self->x + $self->w
386 0 0 0 $self->x + $self->w > $rect->x and $self->x + $self->w <= $rect->x + $rect->w
0 0 0 $rect->x + $rect->w > $self->x and $rect->x + $rect->w <= $self->x + $self->w
399 0 0 0 $self->y >= $rect->y and $self->y < $rect->y + $rect->h
0 0 0 $rect->y >= $self->y and $rect->y < $self->y + $self->h
412 0 0 0 $self->y + $self->h > $rect->y and $self->y + $self->h <= $rect->y + $rect->h
0 0 0 $rect->y + $rect->h > $self->y and $rect->y + $rect->h <= $self->y + $self->h
540 0 0 0 defined $rects and ref $rects eq 'ARRAY'
552 0 0 0 defined $rects and ref $rects eq 'ARRAY'
633 0 0 0 $self->x <= $rect->x && $self->y <= $rect->y && $self->x + $self->w >= $rect->x + $rect->w && $self->y + $self->h >= $rect->y + $rect->h && $self->x + $self->w > $rect->x && $self->y + $self->h > $rect->y
647 0 0 0 defined $x and defined $y
651 0 0 0 $x >= $self->x && $x < $self->x + $self->w && $y >= $self->y && $y < $self->y + $self->h
664 0 0 0 ($rect_A->x >= $rect_B->x && $rect_A->x < $rect_B->x + $rect_B->w || $rect_B->x >= $rect_A->x && $rect_B->x < $rect_A->x + $rect_A->w) && ($rect_A->y >= $rect_B->y && $rect_A->y < $rect_B->y + $rect_B->h || $rect_B->y >= $rect_A->y && $rect_B->y < $rect_A->y + $rect_A->h)
684 0 0 0 defined $rects and ref $rects eq 'ARRAY'
699 0 0 0 defined $rects and ref $rects eq 'ARRAY'
715 0 0 0 defined $rects and ref $rects eq 'HASH'
734 0 0 0 defined $rects and ref $rects eq 'HASH'

or 2 conditions

line l !l condition
11 3 15 shift() || 0
12 5 13 shift() || 0
13 5 13 shift() || 0
14 5 13 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
16 3 15 0 ref $class || $class
85 81 0 0 defined $w or defined $h
99 2 1 2 defined $y or defined $x
115 2 1 2 defined $centery or defined $x
132 0 0 0 defined $bottom or defined $x
148 2 1 2 defined $centerx or defined $centery
164 0 0 0 defined $y or defined $right
180 0 0 0 defined $centery or defined $right
198 0 0 0 defined $bottom or defined $right
215 0 0 0 defined $centerx or defined $y
231 0 0 0 defined $centerx or defined $bottom