Branch Coverage

blib/lib/XML/Tiny/DOM/Element.pm
Criterion Covered Total %
branch 21 22 95.4


line true false branch
99 0 98 if $nodename eq 'DESTROY'
102 15 83 if exists $$self{'attrib'}{$nodename}
107 131 209 if ($$childnode{'type'} eq 'e' and $$childnode{'name'} eq $nodename)
111 2 81 if ($wanted eq '*') { }
80 1 elsif ($wanted =~ /^\d+$/) { }
114 79 1 if exists $childnodes[$wanted]
126 131 2 if ($params{'_parent'})
132 7 2 if $$self{'_parent'}
146 30 3 if (ref $c eq 'ARRAY' and defined $$c[0]{'type'} and $$c[0]{'type'} eq 't') { }
1 2 elsif (ref $c eq 'ARRAY' and keys %{$$c[0];} == 0) { }
166 10 15 if $reversed