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 52 ++$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 1286 15 not $xml and my $tags = $NO_MORE_CONTENT{$end}
139 112 1699 1 not $xml and $start eq "image"
143 112 1567 133 not $xml and $EMPTY{$start}
1473 188 18 $xml || !$BLOCK{$start} and $closing
164 2 5 11 not exists $self->{'xml'} and $pi =~ /xml/iu
189 3998 1 3 $SCOPE{$next->[1]} and $next->[1] ne $end
195 19 2312 6 not $xml and $PHRASING{$end}
2312 0 6 not $xml and $PHRASING{$end} and not $PHRASING{$next->[1]}
264 112 304 1396 not $xml and $$current->[0] ne "root"
272 0 504 377 $parent->[0] ne "root" and not $$scope{$parent->[1]}
293 880 3 5 exists $attrs->{'data'} and ref $attrs->{'data'} eq "HASH"

or 3 conditions

line l !l&&r !l&&!r condition
130 1048 32813 81 $3 // $4
143 112 94 1473 $xml || !$BLOCK{$start}
133 77 1602 not $xml and $EMPTY{$start} or $xml || !$BLOCK{$start} and $closing
146 30 32 1638 $RAW{$start} || $RCDATA{$start}
112 1638 62 $xml or not $RAW{$start} || $RCDATA{$start}