Branch Coverage

blib/lib/MDOM/Element.pm
Criterion Covered Total %
branch 12 74 16.2


line true false branch
174 0 0 unless $cursor = $MDOM::Element::_PARENT{refaddr $cursor}
216 0 0 if _INSTANCE $top, 'MDOM::Document'
231 0 4 unless my $parent = $MDOM::Element::_PARENT{refaddr $self}
237 3 1 unless $$elements[$position + 1]
254 0 0 unless my $parent = $MDOM::Element::_PARENT{refaddr $self}
261 0 0 if $it->significant
279 0 4 unless my $parent = $MDOM::Element::_PARENT{refaddr $self}
285 1 3 unless $position and $$elements[$position - 1]
302 0 0 unless my $parent = $MDOM::Element::_PARENT{refaddr $self}
309 0 0 if $it->significant
335 0 0 unless $cursor = $cursor->first_element
363 0 82 unless $cursor = $cursor->last_element
395 0 0 if ($element)
396 0 0 if $element->isa('MDOM::Token')
399 0 0 unless $cursor = $cursor->parent
400 0 0 if ($cursor->isa('MDOM::Structure') and $cursor->finish)
431 0 0 if ($element)
432 0 0 if $element->isa('MDOM::Token')
435 0 0 unless $cursor = $cursor->parent
436 0 0 if ($cursor->isa('MDOM::Structure') and $cursor->start)
529 0 5 unless my $parent = $self->parent
547 0 5 unless $_[0]->remove
567 0 0 ref $_[0] ? :
568 0 0 unless my $Element = _INSTANCE(shift(), ref $self)
595 0 0 unless (exists $$self{'_location'})
597 0 0 unless my $Document = $self->document
598 0 0 if ($Document->isa('MDOM::Document::Fragment'))
607 0 0 unless $Document->index_locations
608 0 0 unless (exists $$self{'_location'})
624 0 0 unless ($self == $self->top)
633 0 0 if (_INSTANCE $_[0], 'MDOM::Element')
636 0 0 unless $$Token{'_location'}
637 0 0 unless refaddr $Token == refaddr $start
671 0 0 defined $_[0]{'content'} ? :
701 0 0 if ref $_[1]
704 1051 0 _INSTANCE($_[0], 'MDOM::Element') ? :
705 24 1027 _INSTANCE($_[1], 'MDOM::Element') ? :