Branch Coverage

blib/lib/HTML/FormFu/Model/HashRef.pm
Criterion Covered Total %
branch 65 78 83.3


line true false branch
48 85 28 if $name
49 7 106 if ($element->is_repeatable) { }
14 92 elsif ($element->is_block and $element->is_field) { }
28 64 elsif ($element->is_block) { }
51 1 6 unless ($value)
68 4 10 ref $data->{$name} eq 'HASH' ? :
73 4 24 $nested_name ? :
77 4 60 if ($self->inflators and @{$element->get_inflators;} > 0) { }
98 2 6 if ($self->form->submitted)
108 1 6 if ($self->flatten)
123 26 130 unless $name
124 10 120 if $element->type eq 'Multi'
126 22 98 if ($self->options and $element->can('_options') and @{$element->_options;} > 0) { }
77 21 elsif ($element->is_field and $self->deflators) { }
133 2 20 ref $element->default eq 'ARRAY' ? :
138 268 134 if defined $value
139 8 16 unless (@option)
140 134 0 unless $_->{'group'}
147 24 0 if $name
149 20 2 if scalar @values == 1
154 77 0 if $element->can('default')
160 0 21 if $element->can('default')
164 0 120 if (&blessed($names->{$es_name}))
169 1 7 $self->flatten ? :
176 1 14 unless ref $hash
179 4 27 if (ref $v eq 'HASH') { }
3 24 elsif (ref $v eq 'ARRAY') { }
215 151 42 unless ref $data eq 'HASH'
221 6 161 if ($self->get_repeatable($key)) { }
0 161 elsif ($self->get_multi($key) and ref $v eq 'ARRAY') { }
241 0 17 unless $v
248 11 10 unless $new->{$key}[$i - 1]
257 0 0 unless $v
259 0 0 if $new->{$key}
273 4 157 unless ($self->_multi)
276 0 4 unless $multis
290 5 163 unless ($self->_repeatable)
296 0 5 unless $rep
298 1 3 unless $name