Condition Coverage

blib/lib/XML/DT.pm
Criterion Covered Total %
condition 52 96 54.1


and 3 conditions

line !l l&&!r l&&r condition
603 29 8 1 $pattern eq '^' and @XML::DT::dtcontext == 1
795 0 0 0 $string and $preffix
804 0 0 0 $string and $s
836 2 1 7 $first eq '/' and not $second
856 35 0 3 $l->[0] eq '/' and $l->[1]
858 0 5 4 inctxt("$prefix$l->[1]") and _testAttr($l->[3])
883 143 90 9 exists $xml->{'-type'} && exists $xml->{'-type'}{'-default'}
1062 5 0 16 ref $c eq 'HASH' and $c->{'-q'}
0 16 0 ref $c eq 'HASH' and $c->{'-q'} and $c->{'-c'}
1088 5 0 0 defined $q and exists $ty{$q}
0 0 0 defined $q and exists $ty{$q} and $ty{$q} eq 'SEQH'
1109 7 0 20 ref $c eq 'HASH' and $c->{'-q'}
0 20 0 ref $c eq 'HASH' and $c->{'-q'} and $c->{'-c'}
1137 7 0 0 defined $q and exists $ty{$q}
0 0 0 defined $q and exists $ty{$q} and $ty{$q} eq 'SEQH'
1320 0 0 0 @f >= 1 && $f[0] eq '#PCDATA'

or 3 conditions

line l !l&&r !l&&!r condition
603 1 26 11 $pattern eq '^' and @XML::DT::dtcontext == 1 or $pattern eq '.*'
855 3 26 9 $l->[0] or $l->[1]
871 0 8 0 $n{$z} ||= $aux2{$z}
884 35 207 0 $ty{$par} || $defaulttype
893 0 0 40 $type eq 'THE_CHILD' or $type eq 'LAST_CHILD'
5 0 35 $type eq 'SEQ' or $type eq 'ARRAY'
2 0 33 $type eq 'SEQH' or $type eq 'ARRAYOFHASH'
0 0 33 $type eq 'MAP' or $type eq 'HASH'
0 0 33 $type eq 'MMAPON' or $type eq 'HASHOFARRAY'
992 0 0 46 $type eq 'THE_CHILD' or $type eq 'LAST_CHILD'
9 0 37 $type eq 'SEQ' or $type eq 'ARRAY'
4 0 33 $type eq 'SEQH' or $type eq 'ARRAYHASH'
0 0 33 $type eq 'MAP' or $type eq 'HASH'
1063 1 1 21 $q eq 'link' or $q eq 'br'
2 1 20 $q eq 'link' or $q eq 'br' or $q eq 'hr'
2 1 19 $q eq 'link' or $q eq 'br' or $q eq 'hr' or $q eq 'img'