Condition Coverage

blib/lib/HTML/FormFu/Role/Element/Field.pm
Criterion Covered Total %
condition 111 153 72.5


and 3 conditions

line !l l&&!r l&&r condition
101 756 440 97 $parent->can('is_field') and $parent->is_field
149 15631 9614 535 $parent->can('is_field') and $parent->is_field
15631 6700 2914 $parent->can('is_repeatable') and $parent->is_repeatable
217 71 106 10 $parent->can('is_field') and $parent->is_field
71 33 73 $parent->can('is_repeatable') and $parent->is_repeatable
242 71 33 0 $parent->can('original_nested_name') and defined $parent->original_nested_name
390 0 1138 68 $submitted and $self->force_default
1138 35 33 $submitted and $self->force_default and defined $default
0 1138 35 $submitted and $self->force_default
1138 1 34 $submitted and $self->force_default and $self->can('checked')
1139 26 8 $submitted and $self->force_default and $self->can('checked') and $self->checked
0 1138 27 $submitted and $self->force_default
1138 0 27 $submitted and $self->force_default and not defined $default
1138 19 8 $submitted and $self->force_default and not defined $default and defined $original
422 5 1233 39 not defined $render->{'attributes'}{'id'} and defined $self->auto_id
1238 0 39 not defined $render->{'attributes'}{'id'} and defined $self->auto_id and length $self->auto_id
474 786 411 12 $submitted and $self->retain_default
1197 0 12 $submitted and $self->retain_default and defined $new
411 0 12 $submitted and $self->retain_default and defined $new and $new eq $HTML::FormFu::Role::Element::Field::EMPTY_STR
484 786 396 27 $submitted and $self->force_default
1182 6 21 $submitted and $self->force_default and defined $default
402 19 2 $submitted and $self->force_default and defined $default and $new ne $default
534 103 1216 6 not defined $render->{'label'} and defined $self->auto_label
1319 0 6 not defined $render->{'label'} and defined $self->auto_label and length $self->auto_label
549 1216 108 1 defined $render->{'label'} and defined $self->auto_label_class
1324 0 1 defined $render->{'label'} and defined $self->auto_label_class and length $self->auto_label_class
578 1216 106 3 defined $render->{'label'} and defined $self->auto_container_label_class
1322 0 3 defined $render->{'label'} and defined $self->auto_container_label_class and length $self->auto_container_label_class
609 1216 82 27 defined $render->{'label'} and defined $render->{'attributes'}{'id'}
1298 0 27 defined $render->{'label'} and defined $render->{'attributes'}{'id'} and not exists $render->{'label_attributes'}{'for'}
622 1290 32 3 defined $render->{'comment'} and defined $self->auto_comment_class
1322 0 3 defined $render->{'comment'} and defined $self->auto_comment_class and length $self->auto_comment_class
647 1290 32 3 defined $render->{'comment'} and defined $self->auto_container_comment_class
1322 0 3 defined $render->{'comment'} and defined $self->auto_container_comment_class and length $self->auto_container_comment_class
684 829 2 494 $self->form->submitted and defined $name
831 78 416 $self->form->submitted and defined $name and $self->nested_hash_key_exists($form->input, $name)
709 488 1 7 $self->render_processed_value and defined $value
718 1313 0 12 ref $value eq 'ARRAY' and defined $self->name
723 0 0 12 defined $fields->[$i] and $fields->[$i] eq $self
738 1322 0 3 defined $self->auto_container_class and length $self->auto_container_class
896 50 0 1 defined $field_class and length $field_class
912 49 0 2 defined $auto_class and length $auto_class
926 50 0 1 defined $item_class and length $item_class
952 0 0 0 defined $auto_class and length $auto_class
966 0 0 0 defined $item_class and length $item_class
1020 0 0 0 defined $render->{'label'} and $render->{'label_tag'} eq 'legend'
1026 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'}
1094 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
709 829 7 489 not $self->form->submitted or $self->render_processed_value and defined $value