Branch Coverage

lib/HTML/Object/DOM/CharacterData.pm
Criterion Covered Total %
branch 0 72 0.0


line true false branch
34 0 0 unless defined $pos
39 0 0 unless $self->_sanity_check_for_before_after($list)
58 0 0 unless defined $pos
63 0 0 unless $self->_sanity_check_for_before_after($list)
84 0 0 if ref $offset and overload::Method($offset, "\"\"")
85 0 0 if ref $len and overload::Method($len, "\"\"")
86 0 0 unless $self->_is_integer($offset)
90 0 0 unless $self->_is_integer($len)
96 0 0 if $offset > $self->value->length
111 0 0 unless defined $str and CORE::length "$str"
112 0 0 if ref $offset and overload::Method($offset, "\"\"")
114 0 0 unless $self->_is_integer($offset)
119 0 0 if $offset > $self->value->length
137 0 0 unless defined $pos
150 0 0 unless defined $pos
154 0 0 if $pos <= 0
163 0 0 unless defined $pos
181 0 0 if ref $offset and overload::Method($offset, "\"\"")
182 0 0 if ref $len and overload::Method($len, "\"\"")
183 0 0 unless $self->_is_integer($offset)
187 0 0 unless $self->_is_integer($len)
194 0 0 if $offset > $self->value->length
212 0 0 unless defined $pos
217 0 0 if $list->is_empty
232 0 0 if ref $offset and overload::Method($offset, "\"\"")
233 0 0 if ref $len and overload::Method($len, "\"\"")
234 0 0 unless $self->_is_integer($offset)
238 0 0 unless $self->_is_integer($len)
244 0 0 if $offset > $self->value->length
255 0 0 unless $self->_is_a($list, "Module::Generic::Array")
258 0 0 unless ($list->intersect($lineage)->is_empty)
267 0 0 if (not $self->_is_a($_, 'HTML::Object::DOM::DocumentFragment') || $self->_is_a($_, 'HTML::Object::DOM::Element') || $self->_is_a($_, 'HTML::Object::DOM::CharacterData')) { }
0 0 elsif ($self->_is_a($_, 'HTML::Object::DOM::DocumentFragment')) { }
282 0 0 if $node->isa("HTML::Object::DOM::Element")
283 0 0 if ($count > 1 or $node->isa("HTML::Object::DOM::Text"))
293 0 0 if ($self->isa("HTML::Object::DOM::Text") and $self->_is_a($parent, "HTML::Object::DOM::Document"))