Condition Coverage

blib/lib/Game/Collisions/AABB.pm
Criterion Covered Total %
condition 18 33 54.5


and 3 conditions

line !l l&&!r l&&r condition
51 113 0 1 defined $args->{'user_data'} && &Scalar::Util::blessed($args->{'user_data'}) && $args->{'user_data'}->isa('Game::Collisions::UserData')
104 1 0 0 defined $data && &Scalar::Util::blessed($data) && $data->isa('Game::Collisions::UserData')
134 11 0 78 $maxx1 >= $minx2 && $minx1 <= $maxx2 && $maxy1 >= $miny2 && $miny1 <= $maxy2
147 2 0 2 $maxx1 >= $maxx2 && $minx1 <= $minx2 && $maxy1 >= $maxy1 && $miny1 <= $miny2
373 0 0 1 not defined $self->left_node and defined $self->right_node
0 0 0 not defined $self->right_node and defined $self->left_node

or 2 conditions

line l !l condition
244 0 0 $spacing //= ''
268 2 0 $args->{'add_x'} // 0
269 1 1 $args->{'add_y'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
238 183 2 78 defined $self->[7] || defined $self->[8]
358 1 0 1 not defined $self->[7]->parent or $self->[7]->parent != $self
364 1 0 1 not defined $self->[8]->parent or $self->[8]->parent != $self