Condition Coverage

blib/lib/XML/DOM2/DOM/Element.pm
Criterion Covered Total %
condition 11 26 42.3


and 3 conditions

line !l l&&!r l&&r condition
106 0 0 1 defined $index and scalar @children > $index
513 7 0 3 $$self{'attributes'} and keys %{$$self{'attributes'};}
527 4 0 2 $name eq 'id' and $self->document
4 0 2 $name eq 'id' and $self->document and defined $value
843 0 0 0 $key ne 'children' and $key ne 'parent'
885 18 0 0 $id and not $self->document->addId($id, $newChild)

or 2 conditions

line l !l condition
825 10 8 scalar $self->getChildren || 0

or 3 conditions

line l !l&&r !l&&!r condition
228 18 0 0 ref $parent or not defined $parent
795 0 0 0 not defined $index or $index < 0