| lib/HTML/ValidationRules/Legacy.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 21 | 28 | 75.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 60 | 4 | 0 | 29 | $type ne 'submit' and $type ne 'image' |
| 4 | 2 | 27 | $type ne 'submit' and $type ne 'image' and $type ne 'checkbox' | |
| 2 | 27 | 0 | $type ne 'submit' and $type ne 'image' and $type ne 'checkbox' and $type ne 'radio' || exists $tag->attr->{'checked'} | |
| 88 | 0 | 0 | 44 | blessed $params and $params->isa('Mojo::Parameters') |
| 91 | 0 | 0 | 0 | blessed $params and $params->isa('Hash::MultiValue') |
| line | l | !l | condition |
|---|---|---|---|
| 35 | 35 | 5 | $tag->attr('type') || '' |
| 37 | 14 | 26 | $$props{$name} ||= {} |
| 67 | 1 | 1 | $tag->attr->{'maxlength'} || 0 |
| 110 | 51 | 30 | $$props{$name}{$TERM_REQUIRED} || '' |
| 138 | 6 | 58 | $$props{$name}{$TERM_TYPE} || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 60 | 18 | 1 | 8 | $type ne 'radio' || exists $tag->attr->{'checked'} |