Branch Coverage

blib/lib/Text/SimpleTable.pm
Criterion Covered Total %
branch 52 72 72.2


line true false branch
82 8 5 if (ref $arg) { }
89 1 12 if $width < 2
92 8 5 $name ? :
96 3 10 if $max < @{$col->[2];}
114 0 8 unless $self->{'columns'}
127 3 13 if ($j == 0 and $columns == 0) { }
5 8 elsif ($j == 0) { }
5 3 elsif ($j == $columns) { }
140 4 12 if $title < @{$column->[2];}
143 4 4 if ($title)
156 0 20 if ($j == 0 and $columns == 0) { }
7 13 elsif ($j == 0) { }
7 6 elsif ($j == $columns) { }
178 3 46 unless (grep {defined $self->{'columns'}[$_][1][$i];} 0 .. $columns)
188 79 0 defined $column->[1][$i] ? :
192 22 57 if ($j == 0 and $columns == 0) { }
24 33 elsif ($j == 0) { }
24 9 elsif ($j == $columns) { }
212 3 13 if ($j == 0 and $columns == 0) { }
5 8 elsif ($j == 0) { }
5 3 elsif ($j == $columns) { }
250 0 12 if $size < 0
253 7 0 if $size <= @texts
268 14 7 if @$pieces > $max
293 2 13 if ($j == 0 and $columns == 0) { }
5 8 elsif ($j == 0) { }
5 3 elsif ($j == $columns) { }
309 0 0 if (utf8::is_utf8($_[0]))
312 0 0 if ($Unicode::GCString::VERSION or eval 'require Unicode::GCString; 1') { }
0 0 elsif ($Text::VisualWidth::VERSION or eval 'require Text::VisualWidth::UTF8; 1') { }
0 0 elsif ($Text::VisualWidth::PP::VERSION or eval 'require Text::VisualWidth::PP; 1') { }
313 0 0 utf8::is_utf8($_[0]) ? :
316 0 0 utf8::is_utf8($_[0]) ? :
319 0 0 utf8::is_utf8($_[0]) ? :
347 3 107 if (utf8::is_utf8($part)) { }
361 29 0 if defined $part