Branch Coverage

lib/HTML/Object/DOM/Element/Select.pm
Criterion Covered Total %
branch 24 56 42.8


line true false branch
32 0 1 unless $self->SUPER::init(@_)
33 0 1 unless CORE::length "$self->{'tag'}"
41 7 2 unless ($def->{'caller'}[0] eq ref $self or $def->{'caller'}[0] eq "HTML::Object::DOM::Element::Select")
56 0 1 if scalar @_ < 1
61 0 0 unless $self->_is_a($elem, "HTML::Object::DOM::Element::Option") or $self->_is_a($elem, "HTML::Object::DOM::Element::OptGroup")
67 0 1 if (defined $pos and CORE::length $pos)
69 0 0 if (not $self->_is_a($elem, 'HTML::Object::DOM::Element::Option') || $self->_is_a($elem, 'HTML::Object::DOM::Element::OptGroup') || $self->_is_integer($pos)) { }
0 0 elsif ($self->_is_a($elem, 'HTML::Object::DOM::Element::Option') or $self->_is_a($elem, 'HTML::Object::DOM::Element::OptGroup')) { }
84 0 0 if (defined $lineagePos)
93 0 0 if (defined $tmpPos) { }
104 0 0 if ($pos < 0) { }
0 0 elsif ($pos > $size) { }
117 0 1 if (defined $pos and CORE::length $pos) { }
168 15 24 if $self->{'_select_options'} and not $self->_is_select_reset
171 1 23 unless ($self->{'_select_options'})
173 0 1 unless $self->_load_class("HTML::Object::DOM::Element::OptionsCollection")
186 0 1 unless defined $pos and CORE::length "$pos" and $self->_is_integer($pos)
191 0 1 if $pos > $options->size
197 0 1 unless defined $real_pos
214 24 52 if (scalar @_)
232 0 0 unless $self->_is_integer($val)
237 0 0 if $val > $options->size
243 0 0 unless $self->_is_a($elem, "HTML::Object::DOM::Element::Option")
253 0 2 if $self->{'selectedindex'} and not $self->_is_select_reset
258 1 1 if $selected->is_empty
272 2 2 if $self->{'_selected_options'} and not $self->_is_select_reset
280 2 0 unless ($self->{'_selected_options'})
282 0 2 unless $self->_load_class("HTML::Object::DOM::Collection")