Branch Coverage

blib/lib/Algorithm/SpatialIndex/Strategy/QuadTree.pm
Criterion Covered Total %
branch 39 52 75.0


line true false branch
79 2 0 unless defined $self->bucket_size
80 2 0 unless defined $self->max_depth
83 2 0 unless (defined $self->top_node_id)
117 162 292 if (defined $bucket)
118 135 27 if ($bucket->nitems < $$self{'bucket_size'}) { }
8 19 elsif ($$nxy[2] - $$nxy[0] <= 0 or log($self->total_width / ($$nxy[2] - $$nxy[0])) / 0.69314718055994529 >= $self->max_depth) { }
147 124 187 if ($x <= $$nxy[4]) { }
148 60 64 if ($y <= $$nxy[5]) { }
152 90 97 if ($y <= $$nxy[5]) { }
156 0 311 if (not defined $$subnodes[$subnode_index]) { }
161 0 311 unless defined $subnode
184 0 19 unless defined $bucket
223 86 3 if ($$item[1] <= $splitx) { }
224 54 32 if ($$item[2] <= $splity) { }
228 3 0 if ($$item[2] <= $splity) { }
251 78 0 if ref $node_id
268 0 7 if ($x < $$coords[0] or $x > $$coords[2] or $y < $$coords[1] or $y > $$coords[3])
285 7 20 unless @$snode_ids
290 11 9 if ($x <= $splitx) { }
291 7 4 if ($y <= $splity) { }
295 5 4 if ($y <= $splity) { }
309 6 0 $x1 < $x2 ? :
310 6 0 $y1 < $y2 ? :
327 7 317 if ($xu < $$coords[0] or $xl > $$coords[2] or $yu < $$coords[1] or $yl > $$coords[3])
336 234 83 unless (@$snode_ids)
363 0 0 if (@$snode_ids) { }