Condition Coverage

blib/lib/Search/Tools/XML.pm
Criterion Covered Total %
condition 41 58 70.6


and 3 conditions

line !l l&&!r l&&r condition
785 2 0 2 ref $_[0] eq 'HASH' and not exists $_[0]{'tag'}
800 2 0 0 defined $escape and $escape == 1
2 0 0 defined $escape and $escape == 0
816 2 0 2 $strip_plural and ref $strip_plural ne 'CODE'
881 10 15 0 ref $thing and ref $thing eq 'ARRAY' || ref $thing eq 'HASH'
3 0 12 ref $thing and ref $thing eq 'ARRAY' || ref $thing eq 'HASH' and length $root
3 4 8 ref $thing and ref $thing eq 'ARRAY' || ref $thing eq 'HASH' and length $root and $wrap_array
891 10 15 0 ref $thing and ref $thing eq 'ARRAY' || ref $thing eq 'HASH'
3 0 12 ref $thing and ref $thing eq 'ARRAY' || ref $thing eq 'HASH' and length $root
3 4 8 ref $thing and ref $thing eq 'ARRAY' || ref $thing eq 'HASH' and length $root and $wrap_array
910 1 3 4 ref $thing eq 'ARRAY' and $strip_plural
969 0 0 0 scalar @xmlarr and $xmlarr[0] =~ /^<\?\s*xml/

or 2 conditions

line l !l condition
558 1 9 shift() || 0
787 2 0 delete $opts{'root'} || '_root'
788 1 1 delete $opts{'strip_plural'} || 0
795 2 0 shift() || '_root'
796 1 1 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
881 0 12 3 ref $thing eq 'ARRAY' || ref $thing eq 'HASH'
891 0 12 3 ref $thing eq 'ARRAY' || ref $thing eq 'HASH'
914 1 5 2 ref $thing ne 'ARRAY' or $wrap_array
921 1 5 2 ref $thing ne 'ARRAY' or $wrap_array