| blib/lib/HTML/ExtractText.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 23 | 32 | 71.8 |
| line | l | !l | condition |
|---|---|---|---|
| 171 | 0 | 4 | ++$i and next |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 139 | 0 | 4 | 1 | $tag eq 'input' and ($_->attr('type') // '') eq 'image' |
| 159 | 0 | 0 | 20 | $trim and $tree->[0] ne 'root' |
| 171 | 2 | 2 | 0 | $nodes->[$i][0] eq 'text' and $next->[0] eq 'text' |
| 200 | 23 | 2 | 1 | $text =~ /\S\z/ and $chunk =~ /^[^.!?,;:\s]+/ |
| line | l | !l | condition |
|---|---|---|---|
| 139 | 2 | 1 | $_->attr('alt') // '' |
| 4 | 1 | $_->attr('type') // '' | |
| 143 | 3 | 1 | $_->attr('value') // '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 69 | 22 | 0 | 1 | @results or $self->ignore_not_found |
| 139 | 2 | 0 | 5 | $tag eq 'img' or $tag eq 'input' and ($_->attr('type') // '') eq 'image' |
| 181 | 0 | 1 | 2 | $type eq 'cdata' or $type eq 'raw' |
| 203 | 23 | 0 | 3 | $chunk =~ /\S+/ or not $trim |