Condition Coverage

blib/lib/XML/Stream/Tree.pm
Criterion Covered Total %
condition 17 42 40.4


and 3 conditions

line !l l&&!r l&&r condition
140 0 312 0 $pos > 0 and $$self{'SIDS'}{$sid}{'tree'}[$pos - 1] eq '0'
193 0 34 0 defined $$self{'SIDS'}{$sid}{'tree'}[0] and $$self{'SIDS'}{$sid}{'tree'}[0] =~ /^$stream_prefix\:/
299 0 0 0 $#{$$XMLTree[1];} > 0 and $$XMLTree[1][$#{$$XMLTree[1];} - 1] eq '0'
382 1175 0 0 $value ne '' and $attrib ne ''
1175 0 0 $value ne '' and $attrib ne '' and exists $$XMLTree[1][$child + 1][0]{$attrib}
0 0 0 $value ne '' and $attrib ne '' and exists $$XMLTree[1][$child + 1][0]{$attrib} and $$XMLTree[1][$child + 1][0]{$attrib} ne $value
383 1175 0 0 $attrib ne '' and ref $$XMLTree[1][$child + 1] ne 'ARRAY' || !exists($$XMLTree[1][$child + 1][0]{$attrib})
559 0 0 0 $attrib ne '' and exists $$XMLTree[1][0]{$attrib}
613 4 0 1 defined $rawXML and $rawXML ne ''

or 3 conditions

line l !l&&r !l&&!r condition
375 112 1063 635 $$XMLTree[1][$child] eq $tag or $tag eq '*'
383 0 0 0 ref $$XMLTree[1][$child + 1] ne 'ARRAY' || !exists($$XMLTree[1][$child + 1][0]{$attrib})
499 59 0 258 $type eq 'tree array' or $type eq 'value array'
59 200 58 $type eq 'tree array' or $type eq 'value array' or $type eq 'child array'
613 53 0 5 $#{$$parseTree[1];} > 0 or defined $rawXML and $rawXML ne ''