Condition Coverage

blib/lib/Search/Tools/XML.pm
Criterion Covered Total %
condition 43 58 74.1


and 3 conditions

line !l l&&!r l&&r condition
784 2 0 2 ref $_[0] eq 'HASH' and not exists $_[0]{'tag'}
799 2 0 0 defined $escape and $escape == 1
2 0 0 defined $escape and $escape == 0
815 2 0 2 $strip_plural and ref $strip_plural ne 'CODE'
880 10 3 12 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
890 10 3 12 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
909 1 3 4 ref $thing eq 'ARRAY' and $strip_plural
968 0 0 0 scalar @xmlarr and $xmlarr[0] =~ /^<\?\s*xml/

or 2 conditions

line l !l condition
557 1 9 shift() || 0
786 2 0 delete $opts{'root'} || '_root'
787 1 1 delete $opts{'strip_plural'} || 0
794 2 0 shift() || '_root'
795 1 1 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
880 0 12 3 ref $thing eq 'ARRAY' || ref $thing eq 'HASH'
890 0 12 3 ref $thing eq 'ARRAY' || ref $thing eq 'HASH'
913 1 5 2 ref $thing ne 'ARRAY' or $wrap_array
920 1 5 2 ref $thing ne 'ARRAY' or $wrap_array