Branch Coverage

lib/HTML/Object/DOM/Element/Option.pm
Criterion Covered Total %
branch 26 38 68.4


line true false branch
33 0 4 unless $self->SUPER::init(@_)
34 0 4 unless length "$self->{'tag'}"
45 1 11 if (@_) { }
50 1 0 if defined $value
58 4 7 $self->attributes->has('selected') ? :
72 0 1 unless $parent
73 0 1 unless $parent->can("options")
84 0 1 unless (defined $val)
89 0 1 if $self->_is_a($val, "HTML::Object::DOM::Element::Text") or $self->_is_a($val, "HTML::Object::DOM::Element::Space")
90 0 1 if ref $val and not overload::Method($val, "\"\"")
100 1 1 if (defined $label and length "$label") { }
118 0 2 if (want(('LVALUE', 'ASSIGN'))) { }
125 1 1 if (@_)
132 1 1 if ($has_arg) { }
139 1 0 $self->attributes->has('selected') ? :
154 2 4 if (want(('LVALUE', 'ASSIGN'))) { }
161 0 4 if (@_)
167 2 4 if ($has_arg) { }
173 4 0 $self->attributes->has('value') ? :