Condition Coverage

blib/lib/XML/Smart/Tree.pm
Criterion Covered Total %
condition 37 71 52.1


and 3 conditions

line !l l&&!r l&&r condition
119 129 140 4 $module and $module eq 'XML_Parser'
129 22 118 $module and $module eq 'XML_Smart_Parser'
129 0 22 $module and $module eq 'XML_Smart_HTMLParser'
123 118 0 0 not $PARSERS{'XML_Smart_Parser'} and &load_XML_Smart_Parser()
126 18 0 4 not $PARSERS{'XML_Smart_HTMLParser'} and &load_XML_Smart_HTMLParser()
171 0 185 0 $module and $PARSERS{$module}
172 0 0 0 not $XML::Smart::Tree::NO_XML_PARSER and $INC{'XML/Parser.pm'}
0 0 0 not $XML::Smart::Tree::NO_XML_PARSER and $INC{'XML/Parser.pm'} and $PARSERS{'XML_Parser'}
183 0 0 185 $_[0] and $_[0] =~ /^\s*(?:XML_\w+|html?|re\w+|smart)\s*$/i
403 185 99 606 $$this{'LAST_CALL'} and $$this{'LAST_CALL'} eq 'char'
415 880 0 10 $$this{'SMART'}{'tag'} and $$this{'SMART'}{'tag'} == 1
880 0 0 $$this{'SMART'}{'tag'} and $$this{'SMART'}{'tag'} == 2
524 16 375 0 not defined $$this{'PARSING'}{'p'}{'dt:dt'} and defined $$this{'PARSING'}{'p'}{'DT:DT'}
528 375 0 16 $$this{'PARSING'}{'p'}{'dt:dt'} and $$this{'PARSING'}{'p'}{'dt:dt'} =~ /binary\.base64/is
599 880 0 10 $$this{'SMART'}{'tag'} and $$this{'SMART'}{'tag'} == 1
880 0 0 $$this{'SMART'}{'tag'} and $$this{'SMART'}{'tag'} == 2
611 890 0 0 $nkeys == 1 and exists $$this{'PARSING'}{'p'}{'CONTENT'}
616 569 321 0 $$this{'PARSING'}{'p'}{'/nodes'} and not %{$$this{'PARSING'}{'p'}{'/nodes'};}
617 12 391 487 $$this{'PARSING'}{'p'}{'/order'} and $#{$$this{'PARSING'}{'p'}{'/order'};} <= 0

or 2 conditions

line l !l condition
607 282 608 delete $$this{'PARSING'}{'p'}{'/i'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
63 0 0 0 not $tree or ref $tree ne 'ARRAY'
130 140 0 133 $ok or $DEFAULT_LOADED
252 0 0 0 $data[$index] eq '<' or $data[$index] eq '>'
520 0 0 1226 $$this{'SMART'}{'use_spaces'} or $content =~ /\S+/s