Branch Coverage

blib/lib/Tree/Visualize/ASCII/BoundingBox.pm
Criterion Covered Total %
branch 19 28 67.8


line true false branch
32 0 644 unless defined $$self{'string'}[0]
68 0 13 unless $padding =~ /^\s*$/
76 0 27 unless $padding =~ /^\s*$/
84 0 37 unless defined $right and ref $right and UNIVERSAL::isa($right, 'Tree::Visualize::ASCII::BoundingBox')
92 1 36 $self->height < $right->height ? :
112 0 8 unless defined $left and ref $left and UNIVERSAL::isa($left, 'Tree::Visualize::ASCII::BoundingBox')
120 0 8 $self->height < $left->height ? :
140 0 18 unless defined $top and ref $top and UNIVERSAL::isa($top, 'Tree::Visualize::ASCII::BoundingBox')
142 1 17 if ($top->width < $self->width) { }
153 0 37 unless defined $bottom and ref $bottom and UNIVERSAL::isa($bottom, 'Tree::Visualize::ASCII::BoundingBox')
155 21 16 if ($bottom->width < $self->width) { }
168 63 654 if (not $line) { }
96 558 elsif ($width > length $line) { }
0 558 elsif ($width < length $line) { }