| blib/lib/HTML/FormHandler/BuildFields.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 58 | 69 | 84.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 51 | 1 | 14 | 4 | ref $flist eq 'ARRAY' and ref $flist->[0] eq 'HASH' |
| 78 | 4444 | 1 | 11 | $role->can('field_list') and $role->has_field_list |
| 85 | 896 | 549 | 257 | $meta->can('field_list') and $meta->has_field_list |
| 225 | 21 | 51 | 804 | $self->form && $self == $self->form |
| 277 | 141 | 4 | 2 | exists $field_updates->{'by_type'} and exists $field_updates->{'by_type'}{$field_attr->{'type'}} |
| 300 | 3 | 0 | 0 | exists $comp_field_updates->{'by_type'} and exists $comp_field_updates->{'by_type'}{$field_attr->{'type'}} |
| 323 | 21 | 1097 | 0 | $self->form and $self->form->no_widgets |
| 357 | 72 | 5 | 1 | exists $by_flag->{'contains'} and $field_attr->{'is_contains'} |
| 21 | 51 | 5 | exists $by_flag->{'repeatable'} and $class->meta->find_attribute_by_name('is_repeatable') | |
| 20 | 49 | 3 | exists $by_flag->{'compound'} and $class->meta->find_attribute_by_name('is_compound') | |
| 407 | 21 | 1014 | 49 | $field->form and $field->has_flag('is_repeatable') |
| line | l | !l | condition |
|---|---|---|---|
| 161 | 492 | 595 | $field_attr->{'type'} ||= 'Text' |
| 272 | 55 | 92 | $field_updates->{'all'} || {} |
| 294 | 3 | 0 | $comp_field_updates->{'all'} || {} |
| 296 | 1 | 2 | $comp_field_updates->{$name} || {} |
| 337 | 1071 | 21 | $widget_wrapper ||= 'Simple' |
| 415 | 1116 | 0 | delete $field_attr->{'traits'} || [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 24 | 0 | 394 | 0 | $field_list ||= $self->field_list |
| 263 | 1082 | 36 | 0 | delete $field_attr->{'full_name'} || $field_attr->{'name'} |
| 336 | 0 | 1071 | 0 | $widget_wrapper ||= $self->form->widget_wrapper |
| 378 | 282 | 802 | 0 | $parent ||= $self->form |
| 390 | 4 | 4 | 16 | $key eq 'name' or $key eq 'form' |
| 8 | 4 | 12 | $key eq 'name' or $key eq 'form' or $key eq 'parent' | |
| 8 | 4 | 8 | $key eq 'name' or $key eq 'form' or $key eq 'parent' or $key eq 'full_name' | |
| 8 | 4 | 4 | $key eq 'name' or $key eq 'form' or $key eq 'parent' or $key eq 'full_name' or $key eq 'type' |