Branch Coverage

blib/lib/Game/Collisions/AABB.pm
Criterion Covered Total %
branch 60 86 69.7


line true false branch
119 37 32 if defined $next_node->parent
130 20 101 if $self == $other_object
143 0 4 if $self == $other_object
156 0 1 unless defined $self->parent
175 33 39 unless $check_node->is_branch_node
180 1 38 if (not defined $left_node) { }
1 37 elsif (not defined $right_node) { }
181 1 0 if (not $right_node->does_fully_enclose($new_node)) { }
0 0 elsif ($right_node->is_branch_node) { }
199 0 1 if (not $left_node->does_fully_enclose($new_node)) { }
1 0 elsif ($left_node->is_branch_node) { }
226 8 29 $left_surface > $right_surface ? :
246 0 0 $self->is_branch_node ? :
257 0 0 if defined $self->left_node
259 0 0 if defined $self->right_node
276 1 1 if ($self->_do_call_user_data)
306 10 22 if (not defined $old_parent) { }
312 16 6 $best_sibling == $old_parent->left_node ? :
329 0 1 $left_depth > $right_depth ? :
2 1 $difference <= 1 ? :
337 1 4 if $self->is_branch_node
342 3 1 if defined $parent
351 0 3 unless $self->is_branch_node
358 2 1 if (defined $self->[7] and !defined($self->[7]->parent) || $self->[7]->parent != $self)
368 1 1 if (defined $self->[8] and !defined($self->[8]->parent) || $self->[8]->parent != $self)
380 2 1 unless defined $self->parent
381 1 0 if (not defined $self->left_node and defined $self->right_node) { }
0 0 elsif (not defined $self->right_node and defined $self->left_node) { }
383 1 0 if ($self->parent->right_node == $self) { }
392 0 0 if ($self->parent->right_node == $self) { }
408 9 3 unless $self->is_branch_node
412 1 2 $left_depth > $right_depth ? :
421 1 2 unless defined $current_parent
437 0 4 unless defined $current_parent
441 2 2 if (not defined $current_grandparent) { }
443 1 1 if ($is_left) { }
453 2 0 $is_left ? :
459 2 0 if ($is_parent_left) { }
476 27 107 if defined $self->[$index]
480 132 2 defined $node ? :
489 0 69 unless $self->is_branch_node
508 1 142 unless defined $node2
509 0 142 unless defined $node1