Branch Coverage

blib/lib/Tree/R.pm
Criterion Covered Total %
branch 78 106 73.5


line true false branch
113 2 2 unless $self->{'m'}
114 2 2 unless $self->{'M'}
123 1 87 unless $self->{'root'}
124 12 75 unless $N
125 0 87 unless $N
126 55 32 if (not $N->[0]) { }
138 1 12 unless $self->{'root'}
139 2 10 unless $N
140 2 8 unless $x >= $N->[2] and $x <= $N->[4] and $y >= $N->[3] and $y <= $N->[5]
141 4 4 if (not $N->[0]) { }
154 0 2 unless $self->{'root'}
156 2 0 unless $Node
162 2 14 if (${$N;}->[2] > $maxx or ${$N;}->[4] < $minx or ${$N;}->[3] > $maxy or ${$N;}->[5] < $miny) { }
170 4 0 if (not ${$N;}->[0] and ${$N;}->[2] >= $minx and ${$N;}->[4] <= $maxx and ${$N;}->[3] >= $miny and ${$N;}->[5] <= $maxy)
179 6 8 if (${$N;}->[0])
192 0 2 unless $self->{'root'}
194 2 0 unless $Node
200 2 14 if (${$N;}->[2] > $maxx or ${$N;}->[4] < $minx or ${$N;}->[3] > $maxy or ${$N;}->[5] < $miny) { }
208 8 6 if (not ${$N;}->[0]) { }
224 4 18 if (not $self->{'root'}) { }
229 2 16 if @{$N->[1];} > $self->{'M'}
238 11 11 unless $leaf
241 26 11 if (not $entry->[0]) { }
242 11 15 if $entry->[1] == $object
245 7 4 if @ret
253 11 39 unless $N
254 31 19 if $N->[0] == 0
258 21 18 @bbox ? :
268 0 11 unless $leaf
274 3 8 if ($parent and @{$leaf->[1];} < $self->{'m'}) { }
280 3 0 if (@{$parent->[1];} < $self->{'m'})
299 3 0 if @{$N->[1];} > $self->{'M'}
307 1 10 unless defined $self->{'root'}[2]
312 0 0 unless $self->{'root'}
313 0 0 unless $N
314 0 0 unless $N
315 0 0 unless $level
316 0 0 if (not $N->[0]) { }
329 0 21 unless ($self->{'root'})
337 21 9 if (not $N->[1][0][0]) { }
347 8 1 if (not $chosen or $needed_enlargement < $needed_enlargement_of_chosen or $area < $area_of_chosen)
374 0 5 unless (@$group == 0)
375 0 0 if (@$E1 < @$E2) { }
399 30 0 if (not $d or $d_test > $d)
415 0 10 if $cmp == 0
416 0 10 if $cmp == 0
417 6 4 if ($cmp <= 0) { }
4 0 elsif ($cmp > 0) { }
436 10 5 unless defined $area_of_enlarged1
438 10 5 unless defined $area_of_enlarged2
440 15 0 if (not $next or $diff > $max_diff)
465 110 198 $_[0] > $_[1] ? :
469 143 165 $_[0] > $_[1] ? :