Condition Coverage

blib/lib/Mojo/DOM58/_HTML.pm
Criterion Covered Total %
condition 45 52 86.5


and 2 conditions

line l !l condition
171 0 52 ++$closing and next
255 0 10 $result .= ($xml ? qq[ $key="$key"] : " $key") and next

and 3 conditions

line !l l&&!r l&&r condition
155 93 529 11 not $xml and my $tags = $NO_MORE_CONTENT{$end}
177 112 795 1 not $xml and $start eq "image"
182 112 735 61 not $xml and $EMPTY{$start}
695 134 18 $xml || !$BLOCK{$start} and $closing
203 2 5 11 not exists $self->{'xml'} and $pi =~ /xml/i
224 1186 1 3 $SCOPE{$next->[1]} and $next->[1] ne $end
230 19 352 6 not $xml and $PHRASING{$end}
352 0 6 not $xml and $PHRASING{$end} and not $PHRASING{$next->[1]}
302 112 218 578 not $xml and $$current->[0] ne "root"
310 0 148 148 $parent->[0] ne "root" and not $$scope{$parent->[1]}
332 11 0 1 exists $attrs->{'data'} and ref $attrs->{'data'} eq "HASH"

or 3 conditions

line l !l&&r !l&&!r condition
113 0 2250 0 ref $class || $class
182 112 40 695 $xml || !$BLOCK{$start}
61 77 770 not $xml and $EMPTY{$start} or $xml || !$BLOCK{$start} and $closing
185 18 25 753 $RAW{$start} || $RCDATA{$start}
112 753 43 $xml or not $RAW{$start} || $RCDATA{$start}