Condition Coverage

blib/lib/Game/Collisions/AABB.pm
Criterion Covered Total %
condition 21 39 53.8


and 3 conditions

line !l l&&!r l&&r condition
51 115 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 76 $maxx1 >= $minx2 && $minx1 <= $maxx2 && $maxy1 >= $miny2 && $miny1 <= $maxy2
147 2 0 2 $maxx1 >= $maxx2 && $minx1 <= $minx2 && $maxy1 >= $maxy1 && $miny1 <= $miny2
358 0 3 0 defined $self->[7] and !defined($self->[7]->parent) || $self->[7]->parent != $self
368 1 2 0 defined $self->[8] and !defined($self->[8]->parent) || $self->[8]->parent != $self
381 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 178 2 79 defined $self->[7] || defined $self->[8]
358 2 0 1 !defined($self->[7]->parent) || $self->[7]->parent != $self
368 1 0 1 !defined($self->[8]->parent) || $self->[8]->parent != $self