Condition Coverage

blib/lib/Mojo/DOM/HTML.pm
Criterion Covered Total %
condition 48 52 92.3


and 2 conditions

line l !l condition
133 0 64 ++$closing and next
220 0 37 $result .= $xml ? qq[ $key="$key"] : " $key" and next

and 3 conditions

line !l l&&!r l&&r condition
118 93 1486 15 not $xml and my $tags = $NO_MORE_CONTENT{$end}
139 112 1931 1 not $xml and $start eq "image"
143 112 1789 143 not $xml and $EMPTY{$start}
1667 204 30 $xml || !$BLOCK{$start} and $closing
164 2 5 11 not exists $self->{'xml'} and $pi =~ /xml/iu
189 4708 13 3 $SCOPE{$next->[1]} and $next->[1] ne $end
195 19 2802 6 not $xml and $PHRASING{$end}
2802 0 6 not $xml and $PHRASING{$end} and not $PHRASING{$next->[1]}
264 112 305 1627 not $xml and $$current->[0] ne "root"
272 0 595 440 $parent->[0] ne "root" and not $$scope{$parent->[1]}
293 945 3 5 exists $attrs->{'data'} and ref $attrs->{'data'} eq "HASH"

or 3 conditions

line l !l&&r !l&&!r condition
130 1314 32813 93 $3 // $4
143 112 122 1667 $xml || !$BLOCK{$start}
143 89 1812 not $xml and $EMPTY{$start} or $xml || !$BLOCK{$start} and $closing
146 39 33 1860 $RAW{$start} || $RCDATA{$start}
112 1860 72 $xml or not $RAW{$start} || $RCDATA{$start}