Condition Coverage

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


and 2 conditions

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

and 3 conditions

line !l l&&!r l&&r condition
505 0 2 1 $ALLOW_UTF8_FLAG and utf8::is_utf8($text)
543 162 1 2 exists $$self{'indent'} and $$self{'indent'}
552 0 0 162 $from and $to
592 0 0 0 exists $$self{'lwp_useragent'} and ref $$self{'lwp_useragent'}
598 0 0 0 exists $$self{'http_lite'} and ref $$self{'http_lite'}
657 0 0 0 defined $body and not $ct
690 0 0 0 defined $$self{'__user_agent'} and not $ua
715 0 0 273 $from and $to
746 271 0 0 exists $$self{'use_ixhash'} and $$self{'use_ixhash'}
751 268 0 3 exists $$self{'require_xml_decl'} and $$self{'require_xml_decl'}
759 266 0 1 exists $$self{'elem_class'} and $$self{'elem_class'}
774 269 0 0 exists $$self{'use_ixhash'} && $$self{'use_ixhash'}
777 243 13 13 exists $$self{'xml_deref'} && $$self{'xml_deref'}
779 3 5 5 exists $$self{'utf8_flag'} and $$self{'utf8_flag'}
0 6 2 $ALLOW_UTF8_FLAG and utf8::is_utf8($$textref)
808 0 2358 0 defined $ahead and $ahead =~ /\S/
843 56 7 114 exists $$self{'cdata_scalar_ref'} and $$self{'cdata_scalar_ref'}
875 1229 0 0 exists $$self{'use_ixhash'} and $$self{'use_ixhash'}
898 121 0 2 $forcehash and not ref $elem
931 673 66 341 ref $elem and UNIVERSAL::isa($elem, 'HASH')
932 321 0 10 exists $$self{'elem_class'} and $$self{'elem_class'}
996 306 0 0 exists $$self{'use_ixhash'} and $$self{'use_ixhash'}
1043 18 23 103 defined $name and scalar @$out and not grep({not /^
1175 435 0 0 not $ALLOW_UTF8_FLAG and $setflag
1179 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'
1189 0 418 13 $ALLOW_UTF8_FLAG and utf8::is_utf8($$txtref)
1197 12 391 15 $to =~ /$RE_IS_UTF8/ and $setflag
1213 0 0 0 $jfrom and $jto

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
514 0 165 0 $$self{'internal_encoding'} || $INTERNAL_ENCODING
515 16 149 0 shift() || $$self{'output_encoding'} || $XML_ENCODING
713 106 167 0 &xml_decl_encoding(\$text) || $XML_ENCODING
714 0 273 0 $$self{'internal_encoding'} || $INTERNAL_ENCODING
779 5 0 8 exists $$self{'utf8_flag'} and $$self{'utf8_flag'} or $ALLOW_UTF8_FLAG and utf8::is_utf8($$textref)
881 761 114 2042 not ref $node or UNIVERSAL::isa($node, 'SCALAR')
891 8 6 1069 $$self{'__force_hash_all'} || $$self{'__force_hash'}{$name}
1002 3 303 0 $$self{'empty_element_tag_end'} || $EMPTY_ELEMENT_TAG_END
1068 0 8 0 $$self{'empty_element_tag_end'} || $EMPTY_ELEMENT_TAG_END
1179 0 0 0 uc $from eq 'ISO-8859-1' || uc $from eq 'US-ASCII' || uc $from eq 'LATIN-1'