Branch Coverage

blib/lib/HTML/TableContent/Template/Base.pm
Criterion Covered Total %
branch 66 72 91.6


line true false branch
31 42 0 $_[0]->can('_data') ? :
35 1 3 if (ref $_[1][0] eq 'ARRAY')
42 2 41 if (ref $_[1][0] eq 'ARRAY')
62 0 45 unless scalar @{$data;}
65 3 42 if ($self->can('table_spec'))
74 45 0 if (defined $caption_spec)
88 10 125 if (my $cells = delete $header->attributes->{'cells'})
117 0 45 if ($self->can('last_chance'))
130 3366 1166 unless keys %spec
134 126 1040 if (defined $row_index)
141 137 6859 if (my $sp = delete $spec{$_})
142 36 101 if ($_ =~ /odd|even/) { }
146 30 71 $_ =~ /^\d$/msx ? :
152 74 1092 unless keys %spec
155 4110 27 unless defined $spec{$_}{'index'}
156 18 9 defined $row_index ? :
158 5 22 if ($spec{$_}{'index'} =~ /$safe/imsx)
171 8 16 unless $_[2] % 2 == 1
176 8 4 unless $_[2] % 2 == 0
185 75 303 if (my $p = $hash->{$_})
192 15 520 if $_ =~ /increment_id/imsx
194 53 467 if ($_ eq 'class')
221 4 1129 defined $row_base->{'cells'} ? :
226 1194 9 unless ref $cell_spec{$_} eq 'HASH' and defined $cell_spec{$_}{'oac'}
237 12 97 defined $current ? :
245 20 4737 if (my $inner_html = delete $attr->{'inner_html'}) { }
58 4679 elsif ($self->can($action)) { }
246 11 9 if (ref $inner_html eq 'ARRAY') { }
9 0 elsif ($self->can($inner_html)) { }
286 0 1292 unless $_[1] =~ /^\d+$/msx
290 318 974 if ($num = $$small{$_[1]})
296 72 902 if (scalar @numbers == 2) { }
305 185 2523 if ($new == 0)
307 1712 811 unless ($count == 0)
311 902 1621 unless ($num = $small->{$new})
315 1621 902 defined $string ? :