| lib/HTML/ValidationRules/Legacy.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 20 | 28 | 71.4 |
| 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 | 52 | 31 | $props->{$name}{$TERM_REQUIRED} || '' |
| 138 | 6 | 60 | $props->{$name}{$TERM_TYPE} || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 60 | 18 | 0 | 9 | $type ne 'radio' || exists $tag->attr->{'checked'} |