Branch Coverage

blib/lib/Algorithm/QuadTree/PP.pm
Criterion Covered Total %
branch 54 62 87.1


line true false branch
28 19 212 @coords == 3 ? :
31 19 212 if ($shape_type == 1)
57 1046 80 if ($type == $s2->[-1])
58 3 1043 if ($type == 1) { }
1043 0 elsif ($type == 2) { }
75 0 80 unless $type == 1
78 7 49 $s1->[4] > $s2->[2] ? :
24 56 $s1->[4] < $s2->[0] ? :
85 9 51 $s1->[5] > $s2->[3] ? :
20 60 $s1->[5] < $s2->[1] ? :
118 88 6 if $parent
120 22 72 if ($depth < $self->{'DEPTH'})
152 64 1122 if $finding and not $current->{'HAS_OBJECTS'}
155 658 461 unless $fully_contained or _shapesOverlap($shape, $current->{'AREA'})
157 293 171 if ($finding) { }
159 138 155 unless $current->{'CHILDREN'}
161 2 153 if ($fully_contained) { }
170 62 109 if ($fully_contained or not $current->{'CHILDREN'}) { }
179 81 57 if ($finding)
181 6 22 unless $current->{'HAS_OBJECTS'}
185 5 17 if $current->{'CHILDREN'}
196 2 0 if ($node->{'CHILDREN'})
198 2 0 if $child->{'HAS_OBJECTS'}
203 0 0 if ($node->{'PARENT'})
239 57 0 unless @$nodes == 0
257 6 74 if ($self->{'CHECK'})
261 4 3 unless _shapesOverlap($shape, $backref->{$key})
272 0 1 unless exists $self->{'BACKREF'}{$object}
276 2 1 unless @{$node->{'OBJECTS'};}
288 1 30 unless $current->{'HAS_OBJECTS'}
293 7 23 if ($current->{'CHILDREN'})