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 16 unless $self->{'root'}
139 2 14 unless $N
140 2 10 unless $x >= $N->[2] and $x <= $N->[4] and $y >= $N->[3] and $y <= $N->[5]
141 4 6 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 13 unless $leaf
241 29 13 if (not $entry->[0]) { }
242 11 18 if $entry->[1] == $object
245 7 6 if @ret
253 11 45 unless $N
254 33 23 if $N->[0] == 0
258 23 22 @bbox ? :
268 0 11 unless $leaf
274 1 10 if ($parent and @{$leaf->[1];} < $self->{'m'}) { }
280 1 0 if (@{$parent->[1];} < $self->{'m'})
299 1 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 19 unless ($self->{'root'})
337 19 9 if (not $N->[1][0][0]) { }
347 7 2 if (not $chosen or $needed_enlargement < $needed_enlargement_of_chosen or $area < $area_of_chosen)
374 0 3 unless (@$group == 0)
375 0 0 if (@$E1 < @$E2) { }
399 18 0 if (not $d or $d_test > $d)
415 0 6 if $cmp == 0
416 0 6 if $cmp == 0
417 1 5 if ($cmp <= 0) { }
5 0 elsif ($cmp > 0) { }
436 6 3 unless defined $area_of_enlarged1
438 6 3 unless defined $area_of_enlarged2
440 9 0 if (not $next or $diff > $max_diff)
465 90 150 $_[0] > $_[1] ? :
469 124 116 $_[0] > $_[1] ? :