Branch Coverage

blib/lib/MDOM/Element.pm
Criterion Covered Total %
branch 11 74 14.8


line true false branch
168 0 0 unless $cursor = $MDOM::Element::_PARENT{refaddr $cursor}
208 0 0 if _INSTANCE $top, 'MDOM::Document'
223 0 4 unless my $parent = $MDOM::Element::_PARENT{refaddr $self}
229 3 1 unless $$elements[$position + 1]
246 0 0 unless my $parent = $MDOM::Element::_PARENT{refaddr $self}
253 0 0 if $it->significant
271 0 4 unless my $parent = $MDOM::Element::_PARENT{refaddr $self}
277 1 3 unless $position and $$elements[$position - 1]
294 0 0 unless my $parent = $MDOM::Element::_PARENT{refaddr $self}
301 0 0 if $it->significant
327 0 0 unless $cursor = $cursor->first_element
355 0 82 unless $cursor = $cursor->last_element
387 0 0 if ($element)
388 0 0 if $element->isa('MDOM::Token')
391 0 0 unless $cursor = $cursor->parent
392 0 0 if ($cursor->isa('MDOM::Structure') and $cursor->finish)
423 0 0 if ($element)
424 0 0 if $element->isa('MDOM::Token')
427 0 0 unless $cursor = $cursor->parent
428 0 0 if ($cursor->isa('MDOM::Structure') and $cursor->start)
521 0 5 unless my $parent = $self->parent
539 0 5 unless $_[0]->remove
559 0 0 ref $_[0] ? :
560 0 0 unless my $Element = _INSTANCE(shift(), ref $self)
587 0 0 unless (exists $$self{'_location'})
589 0 0 unless my $Document = $self->document
590 0 0 if ($Document->isa('MDOM::Document::Fragment'))
599 0 0 unless $Document->index_locations
600 0 0 unless (exists $$self{'_location'})
616 0 0 unless ($self == $self->top)
625 0 0 if (_INSTANCE $_[0], 'MDOM::Element')
628 0 0 unless $$Token{'_location'}
629 0 0 unless refaddr $Token == refaddr $start
663 0 0 defined $_[0]{'content'} ? :
693 0 0 if ref $_[1]
696 1024 0 _INSTANCE($_[0], 'MDOM::Element') ? :
697 0 1024 _INSTANCE($_[1], 'MDOM::Element') ? :