Branch Coverage

blib/lib/Algorithm/QuadTree/PP.pm
Criterion Covered Total %
branch 37 46 80.4


line true false branch
30 84 5 if $parent
32 21 68 if ($depth < $self->{'DEPTH'}) { }
67 29 55 if $finding and not $current->{'HAS_OBJECTS'}
71 3 34 $coords[0] > $cxmax ? :
18 37 $coords[0] < $cxmin ? :
78 5 36 $coords[1] > $cymax ? :
14 41 $coords[1] < $cymin ? :
86 20 35 if $cx ** 2 + $cy ** 2 > $radius_squared
89 17 18 unless $finding
90 18 17 if ($current->{'CHILDREN'}) { }
110 21 1049 if $finding and not $current->{'HAS_OBJECTS'}
117 220 426 if $coords[0] > $current->{'AREA'}[2] or $coords[2] < $current->{'AREA'}[0] or $coords[1] > $current->{'AREA'}[3] or $coords[3] < $current->{'AREA'}[1]
119 150 276 unless $finding
120 239 187 if ($current->{'CHILDREN'}) { }
135 12 114 if @_ == 5
143 0 0 if ($node->{'CHILDREN'})
145 0 0 if $child->{'HAS_OBJECTS'}
150 0 0 if ($node->{'PARENT'})
185 55 0 unless @$nodes == 0
209 0 1 unless exists $self->{'BACKREF'}{$object}
214 0 1 unless @{$node->{'OBJECTS'};}
226 1 30 unless $current->{'HAS_OBJECTS'}
229 7 23 if ($current->{'CHILDREN'}) { }