Branch Coverage

lib/HTML/Object/DOM/Element/Title.pm
Criterion Covered Total %
branch 12 18 66.6


line true false branch
32 0 18 unless $self->SUPER::init(@_)
33 0 18 unless length "$self->{'tag'}"
44 2 2 if (not $self->{'_title_text'} or $self->_is_reset)
48 2 0 if ($self->{'_initial_text'})
53 1 1 if ($self->looks_like_it_has_html("$val")) { }
72 3 1 if ($self->_is_a($_, "HTML::Object::DOM::Text") or $self->_is_a($_, "HTML::Object::DOM::Space"))
94 0 1 unless (defined $nodes)
101 1 0 unless ($self->_is_a($_, "HTML::Object::DOM::Text") or $self->_is_a($_, "HTML::Object::DOM::Space"))
107 1 0 unless ($ok)