Branch Coverage

blib/lib/Tree/STR.pm
Criterion Covered Total %
branch 27 32 84.3


line true false branch
73 0 0 unless $self->{'root'}
80 0 84 if (is_blessed_ref($_) and $_->can('bbox')) { }
107 30 12 $sort_axis ? :
113 0 123 unless @recs
116 39 84 if (@recs > 1) { }
136 84 42 if @$recs == 1
161 11 17 if $x < $bbox->[0] or $x > $bbox->[2] or $y < $bbox->[1] or $y > $bbox->[3]
163 4 13 if ($child->is_tip_node) { }
172 4 1 unless $aref
194 15 29 if $x2 < $bbox->[0] or $x1 > $bbox->[2] or $y2 < $bbox->[1] or $y1 > $bbox->[3]
197 12 17 if ($child->is_tip_node) { }
0 17 elsif ($x1 < $bbox->[0] and $x2 > $bbox->[2] and $y1 < $bbox->[1] and $y2 > $bbox->[3]) { }
211 3 1 unless $aref
234 28 74 if $x2 < $bbox->[0] or $x1 > $bbox->[2] or $y2 < $bbox->[1] or $y1 > $bbox->[3]
238 16 58 if ($x1 < $bbox->[0] and $x2 > $bbox->[2] and $y1 < $bbox->[1] and $y2 > $bbox->[3]) { }
249 3 1 unless $aref