Branch Coverage

blib/lib/Game/Collisions/AABB.pm
Criterion Covered Total %
branch 58 84 69.0


line true false branch
119 39 31 if defined $next_node->parent
130 20 102 if $self == $other_object
143 0 4 if $self == $other_object
156 0 1 unless defined $self->parent
175 32 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 9 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 2 if $self->is_branch_node
350 0 2 unless $self->is_branch_node
357 1 1 if (not defined $self->[7]->parent or $self->[7]->parent != $self)
363 1 1 if (not defined $self->[8]->parent or $self->[8]->parent != $self)
371 1 1 unless defined $self->parent
372 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) { }
374 1 0 if ($self->parent->right_node == $self) { }
383 0 0 if ($self->parent->right_node == $self) { }
399 9 3 unless $self->is_branch_node
403 1 2 $left_depth > $right_depth ? :
412 1 2 unless defined $current_parent
428 0 4 unless defined $current_parent
432 2 2 if (not defined $current_grandparent) { }
434 1 1 if ($is_left) { }
444 2 0 $is_left ? :
450 2 0 if ($is_parent_left) { }
467 27 104 if defined $self->[$index]
471 129 2 defined $node ? :
480 0 70 unless $self->is_branch_node
499 1 147 unless defined $node2
500 0 147 unless defined $node1