Condition Coverage

blib/lib/HTML/FormFu/Role/Element/Field.pm
Criterion Covered Total %
condition 108 150 72.0


and 3 conditions

line !l l&&!r l&&r condition
101 760 437 97 $parent->can('is_field') and $parent->is_field
149 16075 9550 535 $parent->can('is_field') and $parent->is_field
16075 6662 2888 $parent->can('is_repeatable') and $parent->is_repeatable
217 67 102 10 $parent->can('is_field') and $parent->is_field
67 33 69 $parent->can('is_repeatable') and $parent->is_repeatable
242 67 33 0 $parent->can('original_nested_name') and defined $parent->original_nested_name
390 0 1163 68 $submitted and $self->force_default
1163 35 33 $submitted and $self->force_default and defined $default
0 1163 35 $submitted and $self->force_default
1163 1 34 $submitted and $self->force_default and $self->can('checked')
1164 26 8 $submitted and $self->force_default and $self->can('checked') and $self->checked
0 1163 27 $submitted and $self->force_default
1163 0 27 $submitted and $self->force_default and not defined $default
1163 19 8 $submitted and $self->force_default and not defined $default and defined $original
422 5 1226 39 not defined $render->{'attributes'}{'id'} and defined $self->auto_id
1231 0 39 not defined $render->{'attributes'}{'id'} and defined $self->auto_id and length $self->auto_id
474 786 404 12 $submitted and $self->retain_default
1190 0 12 $submitted and $self->retain_default and defined $new
404 0 12 $submitted and $self->retain_default and defined $new and $new eq $HTML::FormFu::Role::Element::Field::EMPTY_STR
484 786 389 27 $submitted and $self->force_default
1175 6 21 $submitted and $self->force_default and defined $default
395 19 2 $submitted and $self->force_default and defined $default and $new ne $default
533 101 1211 6 not defined $render->{'label'} and defined $self->auto_label
1312 0 6 not defined $render->{'label'} and defined $self->auto_label and length $self->auto_label
548 1211 106 1 defined $render->{'label'} and defined $self->auto_label_class
1317 0 1 defined $render->{'label'} and defined $self->auto_label_class and length $self->auto_label_class
579 1211 104 3 defined $render->{'label'} and defined $self->auto_container_label_class
1315 0 3 defined $render->{'label'} and defined $self->auto_container_label_class and length $self->auto_container_label_class
611 1211 80 27 defined $render->{'label'} and defined $render->{'attributes'}{'id'}
1291 0 27 defined $render->{'label'} and defined $render->{'attributes'}{'id'} and not exists $render->{'label_attributes'}{'for'}
624 1283 32 3 defined $render->{'comment'} and defined $self->auto_comment_class
1315 0 3 defined $render->{'comment'} and defined $self->auto_comment_class and length $self->auto_comment_class
651 1283 32 3 defined $render->{'comment'} and defined $self->auto_container_comment_class
1315 0 3 defined $render->{'comment'} and defined $self->auto_container_comment_class and length $self->auto_container_comment_class
689 829 2 487 $self->form->submitted and defined $name
831 78 409 $self->form->submitted and defined $name and $self->nested_hash_key_exists($form->input, $name)
714 481 1 7 $self->render_processed_value and defined $value
723 1306 0 12 ref $value eq 'ARRAY' and defined $self->name
728 0 0 12 defined $fields->[$i] and $fields->[$i] eq $self
743 1315 0 3 defined $self->auto_container_class and length $self->auto_container_class
904 42 0 2 defined $auto_class and length $auto_class
918 43 0 1 defined $item_class and length $item_class
945 0 0 0 defined $auto_class and length $auto_class
959 0 0 0 defined $item_class and length $item_class
1012 0 0 0 defined $render->{'label'} and $render->{'label_tag'} eq 'legend'
1018 0 0 0 defined $render->{'label'} and $render->{'label_tag'} ne 'legend'
0 0 0 defined $render->{'label'} and $render->{'label_tag'} ne 'legend' and not $render->{'reverse_single'}
1086 0 0 0 defined $render->{'label'} and $render->{'label_tag'} ne 'legend'
0 0 0 defined $render->{'label'} and $render->{'label_tag'} ne 'legend' and $render->{'reverse_single'}

or 3 conditions

line l !l&&r !l&&!r condition
714 829 0 489 not $self->form->submitted or $self->render_processed_value and defined $value