Branch Coverage

blib/lib/Text/FormatTable.pm
Criterion Covered Total %
branch 68 88 77.2


line true false branch
50 26 11 if not defined $min or $l > $min
52 22 1 $min ? :
60 22 1 $len ? :
66 16 8 if defined $a and !defined($b) || $a >= $b
90 22 13 if ($l <= $width) { }
13 0 elsif ($t =~ /^(.{0,$width_m1}\S)\s+(\S.*?)$/) { }
0 0 elsif ($t =~ /(.{$width,}?\S)\s+(\S.*?)$/) { }
102 0 0 if (_uncolorized_length $1 > $width_m1) { }
165 5 8 unless $$r[0] eq 'data' or $$r[0] eq 'head'
171 0 23 if ($$self{'fixed_widths'}[$cn]) { }
193 18 1 unless $$_[0] eq '|'
199 3 1 if ($total_max <= $width) { }
214 1 5 if (defined $$c[2]) { }
224 1 1 if ($available_width < $remaining * 5)
231 1 5 if defined $$c[2]
233 1 4 if ($$c[0] > $w)
237 0 4 if ($$c[1] < $w)
247 1 2 defined $$c[2] ? :
259 3 25 if ($$c[0] eq '|') { }
10 15 elsif ($$c[0] eq ' ') { }
15 0 elsif ($$c[0] eq 'l' or $$c[0] eq 'L' or $$c[0] eq 'r' or $$c[0] eq 'R') { }
260 1 2 if ($char eq '-') { }
0 2 elsif ($char eq ' ') { }
291 20 21 if ($$c[0] eq 'l' or $$c[0] eq 'L') { }
3 18 elsif ($$c[0] eq 'r' or $$c[0] eq 'R') { }
295 5 15 if $lines < $l
303 3 0 if $lines < $l
315 11 78 if ($$c[0] eq '|') { }
31 47 elsif ($$c[0] eq ' ') { }
0 47 elsif ($$c[0] eq 'L' or $$c[0] eq 'R') { }
47 0 elsif ($$c[0] eq 'l' or $$c[0] eq 'r') { }
326 0 0 if (defined $rdata[$data_col][$l - $start_print] and $l >= $start_print) { }
340 35 12 if (defined $rdata[$data_col][$l]) { }
365 0 19 if ($f =~ /(\d+)/)
370 11 8 if ($f eq 'l' or $f eq 'L' or $f eq 'r' or $f eq 'R') { }
8 0 elsif ($f eq '|' or $f eq ' ') { }
433 0 4 unless defined $format
461 0 4 unless scalar @data == $$self{'data_col'}
476 0 4 unless scalar @data == $$self{'data_col'}
493 1 4 unless defined $char
508 3 1 unless defined $width
513 5 8 if ($$r[0] eq 'rule') { }
4 4 elsif ($$r[0] eq 'head') { }
4 0 elsif ($$r[0] eq 'data') { }