Branch Coverage

blib/lib/Algorithm/SpatialIndex/Strategy/OctTree.pm
Criterion Covered Total %
branch 64 78 82.0


line true false branch
97 1 0 unless defined $self->bucket_size
98 1 0 unless defined $self->max_depth
101 1 0 unless (defined $self->top_node_id)
135 265 426 if (defined $bucket)
137 240 25 if (@$items < $$self{'bucket_size'}) { }
0 25 elsif ($$nxyz[3] - $$nxyz[0] <= 0 or log($self->total_width / ($$nxyz[3] - $$nxyz[0])) / 0.69314718055994529 >= $self->max_depth) { }
166 203 248 if ($x <= $$nxyz[6]) { }
167 75 128 if ($y <= $$nxyz[7]) { }
168 33 42 if ($z <= $$nxyz[8]) { }
172 60 68 if ($z <= $$nxyz[8]) { }
177 120 128 if ($y <= $$nxyz[7]) { }
178 60 60 if ($z <= $$nxyz[8]) { }
182 60 68 if ($z <= $$nxyz[8]) { }
187 0 451 if (not defined $$subnodes[$subnode_index]) { }
192 0 451 unless defined $subnode
219 0 25 unless defined $bucket
294 85 40 if ($$item[1] <= $splitx) { }
295 69 16 if ($$item[2] <= $splity) { }
296 39 30 if ($$item[3] <= $splitz) { }
300 12 4 if ($$item[3] <= $splitz) { }
305 24 16 if ($$item[2] <= $splity) { }
306 12 12 if ($$item[3] <= $splitz) { }
310 12 4 if ($$item[3] <= $splitz) { }
334 201 0 if ref $node_id
351 0 7 if ($x < $$coords[0] or $x > $$coords[3] or $y < $$coords[1] or $y > $$coords[4] or $z < $$coords[2] or $z > $$coords[5])
371 7 18 unless @$snode_ids
376 10 8 if ($x <= $xsplit) { }
377 7 3 if ($y <= $ysplit) { }
378 1 6 if ($z <= $zsplit) { }
382 0 3 if ($z <= $zsplit) { }
387 5 3 if ($y <= $ysplit) { }
388 4 1 if ($z <= $zsplit) { }
392 1 2 if ($z <= $zsplit) { }
407 6 0 $x1 < $x2 ? :
408 6 0 $y1 < $y2 ? :
409 5 1 $z1 < $z2 ? :
426 40 744 if ($xu < $$coords[0] or $xl > $$coords[3] or $yu < $$coords[1] or $yl > $$coords[4] or $zu < $$coords[2] or $zl > $$coords[5])
437 644 100 unless (@$snode_ids)
464 0 0 if (@$snode_ids) { }