Branch Coverage

blib/lib/HTML/TableContent/Element.pm
Criterion Covered Total %
branch 28 50 56.0


line true false branch
75 0 8631 defined $_[0]->attributes->{'row_index'} ? :
82 5 8626 defined $_[0]->attributes->{'index'} ? :
89 262 8369 defined $_[0]->attributes->{'template_attr'} ? :
98 0 0 scalar @{$_[0]->data;} ? :
100 0 810 scalar @{$_[0]->children;} ? :
104 97 787 scalar @{$_[0]->nested;} ? :
114 0 0 scalar @{$_[0]->links;} ? :
165 10 149 if ($_[0]->has_nested)
172 87 72 if (scalar @{$_[0]->data;})
185 453 18987 if (my $val = $args->{$attribute})
187 0 453 if (ref $val eq 'ARRAY') { }
0 453 elsif (ref $val eq 'CODE') { }
202 80 730 if (my $inner_html = $_[0]->inner_html)
204 64 16 if ($inner_count == 1) { }
215 0 810 if ($_[0]->has_children)
225 810 0 if (my $before_element = $_[0]->before_element)
227 0 0 ref \$_ eq 'SCALAR' ? :
232 810 0 if (my $after_element = $_[0]->after_element)
234 0 0 ref \$_ eq 'SCALAR' ? :
239 0 810 if (my $wrap_html = $_[0]->wrap_html)
241 0 0 if ($wrap_count == 1) { }
260 0 616 defined $_[0]->truncate ? :
319 3715 4916 if (defined $text)
323 3715 0 if defined $data and scalar @{$data;}
327 0 0 length $_[0]->id ? :