Condition Coverage

blib/lib/HTML/TreeBuilder/XPath.pm
Criterion Covered Total %
condition 14 75 18.6


and 3 conditions

line !l l&&!r l&&r condition
75 0 0 52 defined $$a_anc{'_rank'} and defined $$b_anc{'_rank'}
145 0 0 1102 ref $_[0] && !($_[0]{'_tag'} =~ /^~/)
146 0 77 0 ref $_[0] && $_[0]{'_tag'} eq '~comment'
147 0 0 0 ref $_[0] && $_[0]{'_tag'} eq '~pi'
292 0 0 0 ref $content and ref $content eq 'ARRAY' || $content->isa('ARRAY')
306 0 0 0 $extra_newline{$lc_name} and $content ne ''
354 0 0 0 $HTML::Tagset::isKnown{lc $name} and not $HTML::Tagset::isPhraseMarkup{lc $name}
0 0 0 $HTML::Tagset::isKnown{lc $name} and not $HTML::Tagset::isPhraseMarkup{lc $name} and $indent_level > 0
412 0 0 0 $$node{'_parent'} and $$node{'_parent'}{'_tag'} eq 'script'

or 2 conditions

line l !l condition
82 0 0 $a_prev->getPreviousSibling || (return -1)
84 0 0 $a_next->getNextSibling || (return 1)
86 0 0 $b_prev->getPreviousSibling || (return 1)
88 0 0 $b_next->getNextSibling || (return -1)
132 51 99 $$elt{'_parent'} || bless({'_root', $elt}, 'HTML::TreeBuilder::XPath::Root')
137 122 21 $$elt{'_parent'} || (return undef)
138 116 6 $$elt{'_rank'} || 0
141 18 3 $$elt{'_parent'} || (return undef)
237 0 0 $$node{'_content'} || ''
283 0 0 $$opt{'indent_level'} || 0
291 0 0 $$node{'_content'} || ''
492 0 0 (sort keys %atts)[$rank + 1] || (return undef)

or 3 conditions

line l !l&&r !l&&!r condition
107 71 3 0 $xp ||= 'XML::XPathEngine'->new
238 0 0 0 ref $content eq 'ARRAY' or $content->isa('ARRAY')
283 0 0 0 $$opt{'indent'} || $default_indent
292 0 0 0 ref $content eq 'ARRAY' || $content->isa('ARRAY')
319 0 0 0 not length $att_name or $att_name =~ /^_/
0 0 0 not length $att_name or $att_name =~ /^_/ or $att_name eq '/'
389 0 0 0 $$opt{'force_escape_cdata'} or $text =~ /[<&]/
511 0 0 25 $$att{'_elt'} == $node || $$att{'_elt'}->is_inside($node)