| lib/HTML/Query.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 31 | 39 | 79.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 62 | 114 | 51 | 2 | @_ == 1 and ref $_[0] eq 'ARRAY' |
| 133 | 1 | 1 | 127 | defined $query and length $query |
| 168 | 272 | 2 | 99 | $leading_whitespace and $comops |
| 274 | 93 | 6 | $leading_whitespace and $comops and $query =~ / \G (\*) \s+ /cgx | |
| 189 | 0 | 4 | 14 | $leading_whitespace || $comops == 0 and $tag eq '*' |
| 206 | 146 | 58 | 1 | $comops == 1 and $tag eq 'html' |
| 237 | 0 | 0 | 38 | defined $name and length $name |
| 266 | 0 | 2 | 7 | defined $attribute and length $attribute |
| line | l | !l | condition |
|---|---|---|---|
| 92 | 12 | 0 | $$SOURCES{$type} || (return $class->error_msg('bad_source', $type)) |
| 144 | 7 | 127 | pos $query || 0 |
| 155 | 246 | 127 | pos $query || 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 65 | 116 | 51 | 0 | ref $class || $class |
| 189 | 9 | 9 | 0 | $leading_whitespace || $comops == 0 |
| 599 | 1022 | 49 | 0 | defined $a[$index] || defined $b[$index] |