Branch Coverage

lib/HTML/Object/DOM/Element/TableRow.pm
Criterion Covered Total %
branch 19 50 38.0


line true false branch
32 0 6 unless $self->SUPER::init(@_)
33 1 5 unless defined $self->{'tag'} and length "$self->{'tag'}"
40 11 1 unless ($def->{'caller'}[0] eq ref $self or $def->{'caller'}[0] eq "HTML::Object::DOM::Element::Table")
63 3 63 if $self->{'_row_cells'} and not $self->_is_row_reset
66 6 57 unless ($self->{'_row_cells'})
68 0 6 unless $self->_load_class("HTML::Object::DOM::Collection")
89 0 0 unless defined $pos and $self->_is_integer($pos)
95 0 0 if $pos > $size
99 0 0 if $pos < 0 and abs $pos > $size
103 0 0 if $pos < 0
107 0 0 unless defined $kid_pos
123 0 1 if (defined $pos)
125 0 0 unless $self->_is_integer($pos)
129 0 0 if $pos > $size
133 0 0 if $pos < 0 and abs $pos > $size
137 0 0 if $pos < 0
139 0 1 unless $self->_load_class("HTML::Object::DOM::Element::TableCell")
145 0 1 if (defined $pos) { }
148 0 0 if ($cells->is_empty) { }
155 0 0 unless defined $elem
160 0 0 unless (defined $kid_pos)
183 63 169 if (scalar @_)
206 1 0 if ($self->_is_a($parent, "HTML::Object::DOM::Element::TableSection"))
228 40 23 if (my $parent = $self->parent)
230 40 0 if $parent->can("_reset_section")