Condition Coverage

blib/lib/HTML/Blitz/Parser.pm
Criterion Covered Total %
condition 19 24 79.1


and 3 conditions

line !l l&&!r l&&r condition
25 3 25 0 @_ > 2 and (@_ - 2) % 2
278 1 0 1 $self->{'in_foreign_elem'} and $$src_ref =~ /\G\[CDATA\[/cgu
379 1548 18 4 $is_self_closing and not $is_void
1566 2 2 $is_self_closing and not $is_void and not $foreign_tags{$name}
20 1 1 $is_self_closing and not $is_void and not $foreign_tags{$name} and not $self->{'in_foreign_elem'}

or 3 conditions

line l !l&&r !l&&!r condition
45 8 0 3 $type eq ':TT-TAG-OPEN' || $type eq ':TT-TAG-CLOSE'
143 132 0 0 $entities{$1} // $self->_fail("invalid character reference '$1' after '&'", "pos", $-[1], "width", length $1)
382 21 172 1376 $is_self_closing ||= $is_void