Condition Coverage

blib/lib/Data/MuForm/Fields.pm
Criterion Covered Total %
condition 112 141 79.4


and 3 conditions

line !l l&&!r l&&r condition
62 0 67 448 $self->form and $self == $self->form
67 448 0 $self->form and $self == $self->form and exists $self->index->{$name}
116 398 31 7 $self->skip_fields_without_input and not $field->has_input
429 0 7 $self->skip_fields_without_input and not $field->has_input and not $field->has_input_without_param
119 37 4 388 $field->has_value and not $field->no_update
129 53 57 1 $self->isa('Data::MuForm') and $self->field_prefix
136 270 18 1 ref $fif eq 'ARRAY' and not scalar @{$fif;}
181 223 2 3 $field_list->[0] and ref $field_list->[0] ne 'HASH'
298 15 46 405 $self->form && $self == $self->form
338 520 0 66 not $self->is_form and $self->is_compound
520 0 66 not $self->is_form and $self->is_compound and not exists $field_attr->{'skip_fields_without_input'}
363 15 536 35 $field->form and $field->is_repeatable
430 416 22 16 $self->skip_fields_without_input and not $exists
438 9 7 $self->skip_fields_without_input and not $exists and not $field->has_input_without_param
431 368 77 2 not $exists and $field->disabled
445 1 1 not $exists and $field->disabled and not $field->has_value
453 0 12 83 $self->form and $self->form->fill_from_object_source
12 61 22 $self->form and $self->form->fill_from_object_source and $self->form->fill_from_object_source eq 'model'
73 16 6 $self->form and $self->form->fill_from_object_source and $self->form->fill_from_object_source eq 'model' and $self->form->has_init_values
461 14 211 32 ref $obj eq 'HASH' and not exists $$obj{$field->accessor}
211 11 3 &blessed($obj) and not $obj->can($field->accessor)
537 221 0 11 &blessed($obj) and $obj->can($accessor)
541 0 10 1 scalar @values == 1 and ref $values[0] eq 'ARRAY'
10 0 1 scalar @values == 1 and ref $values[0] eq 'ARRAY' and $field->multiple
547 213 1 2 $field->multiple and ref $v eq 'ARRAY'
563 1 3 1 scalar @values == 1 and not defined $values[0]
1 2 1 scalar @values == 1 and ref $values[0] eq 'ARRAY'
585 31 4 267 $field->has_value and not $field->no_update

or 2 conditions

line l !l condition
128 53 58 $prefix ||= ''
228 457 0 $self->include || []
248 256 331 $field_attr->{'type'} ||= 'Text'

or 3 conditions

line l !l&&r !l&&!r condition
68 10 0 0 $self->form || $self
2 10 0 $f ||= $self->form || $self
115 0 2 436 not $field->is_active or $field->disabled
134 0 0 296 not $field->is_active or $field->password
0 7 289 not $field->is_active or $field->password or $field->no_fif
136 0 0 289 not defined $fif or ref $fif eq 'ARRAY' and not scalar @{$fif;}
332 181 405 0 $parent ||= $self->form
348 2 2 14 $key eq 'name' or $key eq 'form'
4 2 12 $key eq 'name' or $key eq 'form' or $key eq 'parent'
4 2 10 $key eq 'name' or $key eq 'form' or $key eq 'parent' or $key eq 'full_name'
4 2 8 $key eq 'name' or $key eq 'form' or $key eq 'parent' or $key eq 'full_name' or $key eq 'type'
420 160 0 0 defined $input or $exists
160 0 0 defined $input or $exists or $self->has_fields
428 3 451 0 $field->input_param || $field->name
449 95 0 0 $obj or $self->has_fields
461 32 0 225 ref $obj eq 'HASH' and not exists $$obj{$field->accessor} or &blessed($obj) and not $obj->can($field->accessor)
498 5 1 0 ref $value eq 'HASH' or &blessed($value)