Branch Coverage

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


line true false branch
28 17 210 @coords == 3 ? :
31 17 210 if ($shape_type == 1)
57 1040 74 if ($type == $s2->[-1])
58 3 1037 if ($type == 1) { }
1037 0 elsif ($type == 2) { }
75 0 74 unless $type == 1
78 5 45 $s1->[4] > $s2->[2] ? :
24 50 $s1->[4] < $s2->[0] ? :
85 7 47 $s1->[5] > $s2->[3] ? :
20 54 $s1->[5] < $s2->[1] ? :
118 88 6 if $parent
120 22 72 if ($depth < $self->{'DEPTH'})
152 56 1110 if $finding and not $current->{'HAS_OBJECTS'}
155 654 453 unless $fully_contained or _shapesOverlap($shape, $current->{'AREA'})
157 285 171 if ($finding) { }
159 134 151 unless $current->{'CHILDREN'}
161 2 149 if ($fully_contained) { }
170 62 109 if ($fully_contained or not $current->{'CHILDREN'}) { }
179 77 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 70 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'})