Branch Coverage

blib/lib/Acme/AsciiArt2HtmlTable.pm
Criterion Covered Total %
branch 46 48 95.8


line true false branch
89 26 10 if (ref $_[0] eq 'HASH')
117 1 25 if (defined $$new_config{'id'})
130 2 24 if (defined $$new_config{'use-default-colors'})
131 2 0 unless ($$new_config{'use-default-colors'})
145 10 16 if (ref $$new_config{'colors'} eq 'HASH')
172 1 25 if (defined $$new_config{'randomize-new-colors'})
208 65 13 unless defined $$new_config{$elem}
209 0 13 unless ref $$new_config{$elem} eq 'HASH'
216 1 25 if (defined $$new_config{'optimization'})
249 1 35 if ($config{'optimization'})
252 1 2 if ($width < $#{$lines[$l];})
261 4 1389 if $lines[$line][$cell] eq ''
264 4 1385 if ($config{'randomize-new-colors'})
265 1 3 unless (defined $config{'colors'}{$lines[$line][$cell]})
281 5 1384 if ($config{'optimization'})
317 5 4 if $l == $line and $c == $cell
326 2 3 if ($rowspan > 1)
327 1 4 if ($colspan > 1)
341 3 58 if ($config{'optimization'})
351 1 35 if ($config{'optimization'})
508 144 1224 if (ref $hash{$_}) { }
523 15 5 if ($cell eq $_) { }
537 5 3 if ($min > $_)
547 3 4 if ($max < $_)