Branch Coverage

blib/lib/Text/Table/HTML.pm
Criterion Covered Total %
branch 64 74 86.4


line true false branch
17 0 169 if (not defined $val) { }
5 164 elsif (not $val) { }
28 0 25 unless my $rows = delete $params{'rows'}
41 25 0 keys %attr ? :
50 1 24 if (defined(my $caption = delete $params{'caption'}))
54 1 24 if (defined(my $colgroup = delete $params{'html_colgroup'}))
56 1 0 if (@$colgroup)
62 3 1 if (defined $col)
63 2 1 if ('HASH' eq ref $col) { }
83 0 25 if keys %params
90 4 21 if ($footer_row > 0) { }
2 19 elsif ($footer_row < 0) { }
119 24 62 if ($header_row)
123 10 14 if ($needs_thead_open) { }
9 5 elsif (--$header_row == 0) { }
138 28 58 if ($footer_row)
140 6 22 if ($idx == $footer_row_start) { }
4 18 elsif ($idx == $footer_row_end) { }
142 0 6 if ($needs_thead_close) { }
2 4 elsif ($needs_tbody_close) { }
165 23 63 if ($add_tbody_open)
182 13 156 if (ref $cell eq 'HASH') { }
191 1 12 if (defined $cell->{'raw_html'}) { }
199 1 12 if $rowspan > 1
202 1 12 if $colspan > 1
205 1 12 if defined $cell->{'align'}
208 1 12 if defined $cell->{'html_element'}
210 1 12 if (defined $cell->{'html_scope'})
211 0 1 unless $col_tag eq "th"
218 0 13 if defined $cell->{'html_class'}
220 0 13 if defined $cell->{'html_headers'}
222 0 13 if defined $cell->{'html_id'}
224 1 12 if defined $cell->{'html_style'}
237 1 24 if $needs_thead_close
238 2 23 if $needs_tfoot_close
240 2 23 if $needs_tbody_open
241 23 2 if $needs_tbody_open or $needs_tbody_close