Branch Coverage

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


line true false branch
49 85 28 if $name
50 7 106 if ($element->is_repeatable) { }
14 92 elsif ($element->is_block and $element->is_field) { }
28 64 elsif ($element->is_block) { }
52 1 6 unless ($value)
69 4 10 ref $data->{$name} eq 'HASH' ? :
74 4 24 $nested_name ? :
78 4 60 if ($self->inflators and @{$element->get_inflators;} > 0) { }
99 2 6 if ($self->form->submitted)
109 1 6 if ($self->flatten)
124 26 130 unless $name
125 10 120 if $element->type eq 'Multi'
127 22 98 if ($self->options and $element->can('_options') and @{$element->_options;} > 0) { }
77 21 elsif ($element->is_field and $self->deflators) { }
134 2 20 ref $element->default eq 'ARRAY' ? :
139 268 134 if defined $value
140 8 16 unless (@option)
141 134 0 unless $_->{'group'}
148 24 0 if $name
150 20 2 if scalar @values == 1
155 77 0 if $element->can('default')
161 0 21 if $element->can('default')
165 0 120 if (&blessed($names->{$es_name}))
170 1 7 $self->flatten ? :
177 1 14 unless ref $hash
180 4 27 if (ref $v eq 'HASH') { }
3 24 elsif (ref $v eq 'ARRAY') { }
216 151 42 unless ref $data eq 'HASH'
222 6 161 if ($self->get_repeatable($key)) { }
0 161 elsif ($self->get_multi($key) and ref $v eq 'ARRAY') { }
242 0 17 unless $v
249 11 10 unless $new->{$key}[$i - 1]
258 0 0 unless $v
260 0 0 if $new->{$key}
274 4 157 unless ($self->_multi)
277 0 4 unless $multis
291 5 163 unless ($self->_repeatable)
297 0 5 unless $rep
299 1 3 unless $name