Condition Coverage

blib/lib/XML/TreePP.pm
Criterion Covered Total %
condition 64 120 53.3


and 2 conditions

line l !l condition
1040 162 144 defined $name and scalar @$out

and 3 conditions

line !l l&&!r l&&r condition
501 0 2 1 $ALLOW_UTF8_FLAG and utf8::is_utf8($text)
539 162 1 2 exists $$self{'indent'} and $$self{'indent'}
548 0 0 162 $from and $to
588 0 0 0 exists $$self{'lwp_useragent'} and ref $$self{'lwp_useragent'}
594 0 0 0 exists $$self{'http_lite'} and ref $$self{'http_lite'}
654 0 0 0 defined $body and not $ct
687 0 0 0 defined $$self{'__user_agent'} and not $ua
712 0 0 273 $from and $to
743 271 0 0 exists $$self{'use_ixhash'} and $$self{'use_ixhash'}
748 268 0 3 exists $$self{'require_xml_decl'} and $$self{'require_xml_decl'}
756 266 0 1 exists $$self{'elem_class'} and $$self{'elem_class'}
771 269 0 0 exists $$self{'use_ixhash'} && $$self{'use_ixhash'}
774 243 13 13 exists $$self{'xml_deref'} && $$self{'xml_deref'}
776 3 5 5 exists $$self{'utf8_flag'} and $$self{'utf8_flag'}
0 6 2 $ALLOW_UTF8_FLAG and utf8::is_utf8($$textref)
805 0 2358 0 defined $ahead and $ahead =~ /\S/
840 56 7 114 exists $$self{'cdata_scalar_ref'} and $$self{'cdata_scalar_ref'}
872 1229 0 0 exists $$self{'use_ixhash'} and $$self{'use_ixhash'}
895 121 0 2 $forcehash and not ref $elem
928 673 66 341 ref $elem and UNIVERSAL::isa($elem, 'HASH')
929 321 0 10 exists $$self{'elem_class'} and $$self{'elem_class'}
993 306 0 0 exists $$self{'use_ixhash'} and $$self{'use_ixhash'}
1040 18 23 103 defined $name and scalar @$out and not grep({not /^
1172 435 0 0 not $ALLOW_UTF8_FLAG and $setflag
1176 0 0 0 uc $from eq 'ISO-8859-1' || uc $from eq 'US-ASCII' || uc $from eq 'LATIN-1' and uc $to eq 'UTF-8'
1186 0 418 13 $ALLOW_UTF8_FLAG and utf8::is_utf8($$txtref)
1194 12 391 15 $to =~ /$RE_IS_UTF8/ and $setflag
1210 0 0 0 $jfrom and $jto

or 2 conditions

line l !l condition
586 0 0 shift() || {}
939 148 932 $$tree{$name} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
510 0 165 0 $$self{'internal_encoding'} || $INTERNAL_ENCODING
511 16 149 0 shift() || $$self{'output_encoding'} || $XML_ENCODING
710 106 167 0 &xml_decl_encoding(\$text) || $XML_ENCODING
711 0 273 0 $$self{'internal_encoding'} || $INTERNAL_ENCODING
776 5 0 8 exists $$self{'utf8_flag'} and $$self{'utf8_flag'} or $ALLOW_UTF8_FLAG and utf8::is_utf8($$textref)
878 761 114 2042 not ref $node or UNIVERSAL::isa($node, 'SCALAR')
888 8 6 1069 $$self{'__force_hash_all'} || $$self{'__force_hash'}{$name}
999 3 303 0 $$self{'empty_element_tag_end'} || $EMPTY_ELEMENT_TAG_END
1065 0 8 0 $$self{'empty_element_tag_end'} || $EMPTY_ELEMENT_TAG_END
1176 0 0 0 uc $from eq 'ISO-8859-1' || uc $from eq 'US-ASCII' || uc $from eq 'LATIN-1'