Condition Coverage

lib/MKDoc/XML/Dumper.pm
Criterion Covered Total %
condition 55 74 74.3


and 3 conditions

line !l l&&!r l&&r condition
28 0 21 1 @tree and not ref $tree[0]
21 0 1 @tree and not ref $tree[0] and $tree[0] =~ /^(\s|\n|\r)*$/
0 0 21 @tree and ref $tree[0]
0 0 21 @tree and ref $tree[0] and $tree[0]{'_tag'}
0 20 1 @tree and ref $tree[0] and $tree[0]{'_tag'} and $tree[0]{'_tag'} eq '~pi'
175 36 0 1 $$tree{'undef'} and $$tree{'undef'} eq 'true'
216 0 39 79 $ref and ref $ref
237 0 39 18 $ref and ref $ref
39 11 7 $ref and ref $ref and &Scalar::Util::reftype($ref) eq 'SCALAR'
259 0 39 76 $ref and ref $ref
39 16 60 $ref and ref $ref and &Scalar::Util::reftype($ref) eq 'REF'
281 0 39 17 $ref and ref $ref
39 7 10 $ref and ref $ref and &Scalar::Util::reftype($ref) eq 'HASH'
310 0 39 13 $ref and ref $ref
39 0 13 $ref and ref $ref and &Scalar::Util::reftype($ref) eq 'ARRAY'

or 2 conditions

line l !l condition
75 3 0 $$tree{'id'} || (return ())
86 60 0 $$tree{'id'} || (return ())
131 49 9 $$item{'_content'}[0] || ''
202 77 39 &Scalar::Util::reftype($ref) || ''

or 3 conditions

line l !l&&r !l&&!r condition
28 1 0 21 @tree and not ref $tree[0] and $tree[0] =~ /^(\s|\n|\r)*$/ or @tree and ref $tree[0] and $tree[0]{'_tag'} and $tree[0]{'_tag'} eq '~pi'
44 10 1 119 $class->xml_to_perl_backwards_compat_perl_tag($_) or $class->xml_to_perl_backref($_)
11 1 118 $class->xml_to_perl_backwards_compat_perl_tag($_) or $class->xml_to_perl_backref($_) or $class->xml_to_perl_ref($_)
61 0 59 $class->xml_to_perl_backwards_compat_perl_tag($_) or $class->xml_to_perl_backref($_) or $class->xml_to_perl_ref($_) or $class->xml_to_perl_scalar($_)
65 11 43 $class->xml_to_perl_backwards_compat_perl_tag($_) or $class->xml_to_perl_backref($_) or $class->xml_to_perl_ref($_) or $class->xml_to_perl_scalar($_) or $class->xml_to_perl_hash($_)
19 3 37 $class->xml_to_perl_backwards_compat_perl_tag($_) or $class->xml_to_perl_backref($_) or $class->xml_to_perl_ref($_) or $class->xml_to_perl_scalar($_) or $class->xml_to_perl_hash($_) or $class->xml_to_perl_array($_)
204 11 39 0 $class->perl_to_xml_backref($ref) || $class->perl_to_xml_ref($ref) || $class->perl_to_xml_scalar($ref) || $class->perl_to_xml_hash($ref) || $class->perl_to_xml_array($ref) || $class->perl_to_xml_litteral($ref)