| blib/lib/HTML/Blitz/Parser.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 19 | 24 | 79.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 23 | 3 | 25 | 0 | @_ > 2 and (@_ - 2) % 2 |
| 276 | 1 | 0 | 1 | $self->{'in_foreign_elem'} and $$src_ref =~ /\G\[CDATA\[/cgu |
| 377 | 1557 | 18 | 4 | $is_self_closing and not $is_void |
| 1575 | 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'} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 43 | 8 | 0 | 3 | $type eq ':TT-TAG-OPEN' || $type eq ':TT-TAG-CLOSE' |
| 141 | 133 | 0 | 0 | $entities{$1} // $self->_fail("invalid character reference '$1' after '&'", "pos", $-[1], "width", length $1) |
| 380 | 21 | 174 | 1383 | $is_self_closing ||= $is_void |