Branch Coverage

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


line true false branch
82 8 7 if (ref $arg) { }
89 1 14 if $width < 2
92 8 7 $name ? :
96 3 12 if $max < @{$col->[2];}
114 0 9 unless $self->{'columns'}
127 3 15 if ($j == 0 and $columns == 0) { }
6 9 elsif ($j == 0) { }
6 3 elsif ($j == $columns) { }
140 4 14 if $title < @{$column->[2];}
143 4 5 if ($title)
156 0 20 if ($j == 0 and $columns == 0) { }
7 13 elsif ($j == 0) { }
7 6 elsif ($j == $columns) { }
178 7 61 unless (grep {defined $self->{'columns'}[$_][1][$i];} 0 .. $columns)
188 109 0 defined $column->[1][$i] ? :
192 22 87 if ($j == 0 and $columns == 0) { }
39 48 elsif ($j == 0) { }
39 9 elsif ($j == $columns) { }
212 3 15 if ($j == 0 and $columns == 0) { }
6 9 elsif ($j == 0) { }
6 3 elsif ($j == $columns) { }
250 0 17 if $size < 0
253 12 0 if $size <= @texts
268 19 12 if @$pieces > $max
293 2 21 if ($j == 0 and $columns == 0) { }
9 12 elsif ($j == 0) { }
9 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 182 118 if (utf8::is_utf8($part)) { }
361 39 0 if defined $part