| blib/lib/Test/HTML/Form.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 16 | 31 | 51.6 |
| line | l | !l | condition |
|---|---|---|---|
| 461 | 0 | 2 | $selected_option && scalar grep((/selected/i && $selected_option->attr($_)), $selected_option->all_external_attr_names) |
| 510 | 0 | 1 | $selected_box && scalar grep((/checked/i && $selected_box->attr($_)), $selected_box->all_attr_names) |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 454 | 0 | 0 | 12 | ref $option and lc $option->tag eq 'option' |
| 604 | 0 | 0 | 16 | $elem and ref $elem eq 'HTML::Element' |
| 616 | 0 | 0 | 0 | $elem && $value =~ /$field_value/ |
| 618 | 0 | 10 | 6 | $elem && $value eq $field_value |
| 683 | 2 | 0 | 2 | ref $filename and $filename->can('content') |
| 697 | 25 | 0 | 4 | ref $filename and $filename->can('content') |
| line | l | !l | condition |
|---|---|---|---|
| 501 | 1 | 0 | $form_fields->{$field_name} || [] |
| 646 | 6 | 9 | $count || 0 |
| 659 | 1 | 1 | $count || 0 |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 356 | 1 | 0 | 0 | $ok || $text =~ /$pattern/ |