Condition Coverage

blib/lib/Mojo/DOM58/_HTML.pm
Criterion Covered Total %
condition 42 49 85.7


and 2 conditions

line l !l condition
168 0 44 ++$closing and next
249 0 10 $result .= $xml ? qq[ $key="$key"] : " $key" and next

and 3 conditions

line !l l&&!r l&&r condition
152 83 511 11 not $xml and my $tags = $NO_MORE_CONTENT{$end}
174 103 759 1 not $xml and $start eq 'image'
179 103 704 56 not $xml and $EMPTY{$start}
669 120 18 $xml || !$BLOCK{$start} and $closing
200 2 5 11 not exists $self->{'xml'} and $pi =~ /xml/i
224 18 346 4 not $xml and $PHRASING{$end}
346 0 4 not $xml and $PHRASING{$end} and not $PHRASING{$next->[1]}
296 103 203 557 not $xml and $$current->[0] ne 'root'
304 0 146 147 $parent->[0] ne 'root' and not $$scope{$parent->[1]}
326 11 0 1 exists $attrs->{'data'} and ref $attrs->{'data'} eq 'HASH'

or 3 conditions

line l !l&&r !l&&!r condition
110 0 2194 0 ref $class || $class
179 103 35 669 $xml || !$BLOCK{$start}
56 77 730 not $xml and $EMPTY{$start} or $xml || !$BLOCK{$start} and $closing
182 15 25 720 $RAW{$start} || $RCDATA{$start}
103 720 40 $xml or not $RAW{$start} || $RCDATA{$start}