Branch Coverage

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


line true false branch
119 39 32 if defined $next_node->parent
130 20 103 if $self == $other_object
143 0 4 if $self == $other_object
156 0 1 unless defined $self->parent
175 33 41 unless $check_node->is_branch_node
180 1 40 if (not defined $left_node) { }
1 39 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 7 32 $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 17 5 $best_sibling == $old_parent->left_node ? :
329 0 1 $left_depth > $right_depth ? :
2 1 $difference <= 1 ? :
337 1 3 if $self->is_branch_node
342 2 1 if defined $parent
351 0 2 unless $self->is_branch_node
358 1 1 if (not defined $self->[7]->parent or $self->[7]->parent != $self)
364 1 1 if (not defined $self->[8]->parent or $self->[8]->parent != $self)
372 1 1 unless defined $self->parent
373 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) { }
375 1 0 if ($self->parent->right_node == $self) { }
384 0 0 if ($self->parent->right_node == $self) { }
400 9 3 unless $self->is_branch_node
404 1 2 $left_depth > $right_depth ? :
413 1 2 unless defined $current_parent
429 0 4 unless defined $current_parent
433 2 2 if (not defined $current_grandparent) { }
435 1 1 if ($is_left) { }
445 2 0 $is_left ? :
451 2 0 if ($is_parent_left) { }
468 27 106 if defined $self->[$index]
472 131 2 defined $node ? :
481 0 71 unless $self->is_branch_node
500 1 148 unless defined $node2
501 0 148 unless defined $node1