Branch Coverage

blib/lib/HTML/FormHandler/Field/Repeatable.pm
Criterion Covered Total %
branch 44 56 78.5


line true false branch
37 0 80 if $field->is_inactive
40 77 3 if $field->has_value
49 49 71 unless ($self->has_contains)
50 16 33 if ($self->num_fields == 1 and $self->field('contains')) { }
72 7 26 if $self->has_primary_key
74 4 29 if ($self->has_init_contains)
77 32 1 if ($self->form) { }
96 4 29 if ($self->auto_id)
97 4 0 unless (grep(($_->can('is_primary_key') && $_->is_primary_key), $instance->all_fields))
100 4 0 if ($self->form) { }
121 142 53 if ($field->has_fields)
133 10 452 if ($new_field->has_fields)
151 39 3 if (ref $input eq 'ARRAY')
154 2 82 unless defined $element
167 0 42 if $self->setup_for_js
174 0 1 unless $self->form
194 0 16 if $self->num_when_empty > 0 and not $values
203 0 16 if $values and ref $values ne 'ARRAY'
205 0 35 unless $element
209 2 33 if ($field->has_inflate_default_method)
218 1 15 if (my $num_extra = $self->num_extra)
226 0 16 if $self->setup_for_js
227 14 2 if scalar @new_values
240 3 0 if $result
247 1 0 unless defined $count
262 2 60 if (my(@values) = $self->get_default_value)
276 75 0 if $result
282 1 59 if $self->setup_for_js