Branch Coverage

lib/HTML/Object/DOM/Text.pm
Criterion Covered Total %
branch 11 34 32.3


line true false branch
31 0 123 unless $self->HTML::Object::Text::init(@_)
37 0 0 wantarray ? :
39 105 40 wantarray ? :
69 0 0 unless $self->_is_a($e, "HTML::Object::Element")
70 0 0 unless $self->_is_a($e, "HTML::Object::Text")
97 0 1 if ref $content and not overload::Method($content, "\"\"")
104 0 1 unless ($parent)
111 0 1 unless defined $pos
118 0 0 unless ($self->_is_a($_, "HTML::Object::DOM::Text") or $self->_is_a($_, "HTML::Object::DOM::Space"))
128 0 0 unless ($self->_is_a($_, "HTML::Object::DOM::Text") or $self->_is_a($_, "HTML::Object::DOM::Space"))
147 0 1 unless $self->_is_integer($offset)
153 0 1 if $offset > $size
157 0 1 if ($offset < 0)
170 1 0 if ($parent)
175 0 1 unless defined $pos
200 0 0 unless ($self->_is_a($_, "HTML::Object::DOM::Text") or $self->_is_a($_, "HTML::Object::DOM::Space"))
209 0 0 unless ($self->_is_a($_, "HTML::Object::DOM::Text") or $self->_is_a($_, "HTML::Object::DOM::Space"))