Branch Coverage

blib/lib/Text/UnicodeTable/Simple.pm
Criterion Covered Total %
branch 59 62 95.1


line true false branch
31 1 28 if (defined $header and ref $header ne 'ARRAY')
36 3 25 if (defined $alignment)
37 1 2 unless ($alignment eq 'left' or $alignment eq 'right')
40 1 1 if ($alignment eq 'left') { }
57 1 26 if (defined $header)
68 1 24 if (scalar @headers == 0)
84 113 6 $element ne '' ? :
87 50 69 if $longest < scalar @divided
112 12 109 if $$self{'alignment'}
113 31 78 looks_like_number $str ? :
138 1 26 if ($$self{'width'} < scalar @rows)
152 3 49 unless (exists $$self{'width'})
161 7 48 if (ref $args[0] eq 'ARRAY') { }
162 5 2 if (scalar @args == 1) { }
172 123 0 defined $_ ? :
196 11 7 if $$self{'border'}
198 11 7 if $$self{'border'}
205 22 3 if (ref $row eq 'ARRAY') { }
3 0 elsif (ref $row eq 'Text::UnicodeTable::Simple::Line') { }
209 2 1 if $i != $row_length - 1
213 11 7 if $$self{'border'}
222 27 17 $$self{'border'} ? :
232 27 17 if $$self{'border'}
245 30 54 if ($cell->alignment == 2) { }
264 11 7 $$self{'border'} ? :
296 6 84 unless ref $$matrix_ref[$j] eq 'ARRAY'
300 70 14 if $len > $max
313 0 19 if ($a_length != $b_length)
319 13 22 $$a[$i] >= $$b[$i] ? :
328 8 160 if ($$self{'ansi_color'})
334 8 168 $1 ? :