Branch Coverage

blib/lib/Text/SpanningTable.pm
Criterion Covered Total %
branch 53 64 82.8


line true false branch
176 1 2 unless @cols and scalar @cols
201 1 54 if (defined $_[1])
231 1 0 if scalar @_
262 30 13 unless $i == scalar @{$$self{'cols'};} - 1
272 8 5 if $self->newlines
275 8 5 if ($$self{'exec'})
277 8 0 if $$self{'args'}
358 6 18 if (ref $data[$i] eq 'ARRAY') { }
360 6 0 if $data[$i][1]
377 18 0 if $data[$i]
385 4 20 if length $text < 4
393 11 13 if (length $text > $width) { }
411 2 41 if (substr($text, $width - 1, 1) =~ /^\s$/) { }
8 33 elsif (substr($text, $width - 2, 1) =~ /^\s$/) { }
7 26 elsif (substr($text, $width, 1) =~ /^\s$/) { }
421 11 0 if length $text
431 10 57 ref $data[$i] eq 'ARRAY' ? :
441 43 80 if $rows[$i][$j]
443 17 63 if (ref $rows[$i - 1][$j] eq 'ARRAY')
463 27 78 if (ref $rows[$i][$j] eq 'ARRAY') { }
480 84 21 $text && length $text ? :
483 27 78 ref $rows[$i][$j] eq 'ARRAY' ? :
486 68 37 unless $push == scalar @{$$self{'cols'};}
493 8 37 if ($left)
497 4 8 unless $k == $left
510 7 4 if ($$self{'exec'})
512 7 0 if $$self{'args'}
514 28 0 if $self->newlines and not /\n$/
522 0 11 if (wantarray) { }
524 0 0 if $self->newlines and not /\n$/
529 7 4 if $self->newlines
556 0 2 if $self->newlines