Branch Coverage

blib/lib/Algorithm/QuadTree/PP.pm
Criterion Covered Total %
branch 38 40 95.0


line true false branch
28 84 5 if $parent
30 21 68 if ($depth < $self->{'DEPTH'}) { }
65 29 55 if $finding and not $current->{'HAS_OBJECTS'}
69 3 34 $coords[0] > $cxmax ? :
18 37 $coords[0] < $cxmin ? :
76 5 36 $coords[1] > $cymax ? :
14 41 $coords[1] < $cymin ? :
84 20 35 if ($coords[0] - $cx) ** 2 + ($coords[1] - $cy) ** 2 > $radius_squared
87 17 18 unless $finding
88 18 17 if ($current->{'CHILDREN'}) { }
108 21 1040 if $finding and not $current->{'HAS_OBJECTS'}
115 218 423 if $coords[0] > $current->{'AREA'}[2] or $coords[2] < $current->{'AREA'}[0] or $coords[1] > $current->{'AREA'}[3] or $coords[3] < $current->{'AREA'}[1]
117 150 273 unless $finding
118 237 186 if ($current->{'CHILDREN'}) { }
133 12 113 if @_ == 5
141 50 38 if ($node->{'CHILDREN'})
143 30 114 if $child->{'HAS_OBJECTS'}
148 50 8 if ($node->{'PARENT'})
201 0 1 unless exists $self->{'BACKREF'}{$object}
205 0 1 unless @{$node->{'OBJECTS'};}