Branch Coverage

blib/lib/Text/SpanningTable.pm
Criterion Covered Total %
branch 74 88 84.0


line true false branch
174 1 4 unless @cols and scalar @cols
177 0 14 if $_ < 6
202 3 108 if defined $_[1]
220 2 0 if defined $_[1]
249 3 0 if scalar @_
276 13 3 if ($self->{'decorate'}) { }
2 1 elsif ($type eq 'dhr') { }
287 30 13 unless $i == scalar @{$self->{'cols'};} - 1
302 10 5 if $self->newlines
305 10 5 if ($self->{'exec'})
307 10 0 if $self->{'args'}
388 8 32 if (ref $data[$i] eq 'ARRAY') { }
390 8 0 if defined $data[$i][1]
401 6 2 if $self->{'decorate'}
408 32 0 if defined $data[$i]
413 24 16 if ($self->{'decorate'}) { }
417 4 20 if length $text < 4
423 0 16 if length $text == 0
431 13 27 if (length $text > $width) { }
449 2 44 if (substr($text, $width - 1, 1) =~ /^\s$/) { }
8 36 elsif (substr($text, $width - 2, 1) =~ /^\s$/) { }
7 29 elsif (substr($text, $width, 1) =~ /^\s$/) { }
459 13 0 if length $text
469 14 72 ref $data[$i] eq 'ARRAY' ? :
479 46 86 if $rows[$i][$j]
481 17 69 if (ref $rows[$i - 1][$j] eq 'ARRAY')
492 45 9 $self->{'decorate'} ? :
501 31 94 if (ref $rows[$i][$j] eq 'ARRAY') { }
515 105 20 $self->{'decorate'} ? :
519 103 22 $text && length $text ? :
522 31 94 ref $rows[$i][$j] eq 'ARRAY' ? :
525 82 43 if ($push != scalar @{$self->{'cols'};})
526 68 14 $self->{'decorate'} ? :
534 11 43 if ($left)
538 12 3 if $self->{'decorate'}
540 4 11 if ($k != $left)
541 4 0 $self->{'decorate'} ? :
547 45 9 if $self->{'decorate'}
556 13 4 if ($self->{'exec'})
558 13 0 if $self->{'args'}
560 37 0 if $self->newlines and not /\n$/
569 0 54 if $self->newlines and not /\n$/
571 0 17 wantarray ? :
595 0 2 if $self->newlines