Branch Coverage

blib/lib/HTML/TableContent/Parser.pm
Criterion Covered Total %
branch 44 44 100.0


line true false branch
30 2352 586 scalar @{$_[0]->caption_selectors;} ? :
34 898 6911 $_[0]->count_nested ? :
47 789 6644 $_[0]->has_nested ? :
69 262 4859 if ($self->current_element and $attr->{'href'})
74 3721 2938 if (my $option = $self->options->{$tag})
81 2352 586 if ($self->has_caption_selector)
83 38 3031 if ($selector eq $tag)
89 4167 1893 unless $val
91 2 1891 if ($val =~ /$selector/imsx)
104 6418 1786 if (my $elem = $self->current_element)
105 2728 3690 if ($text =~ /\S+/msx)
110 370 7834 if (my $selected = $self->selected)
111 317 53 if ($text =~ /\S+/msx)
125 3712 2814 if (my $option = $self->options->{$tag})
127 1352 2360 if (my $action = $option->{'close'})
192 81 215 if (defined $table and $table->isa('HTML::TableContent::Table')) { }
193 28 53 if ($self->has_nested)
201 18 197 if (my $caption = $self->selected)
212 81 214 if ($self->has_nested) { }
227 247 810 if ($row->header) { }
10 800 elsif ($row->cell_count == 0) { }
233 26 13 if (defined $row) { }