Branch Coverage

blib/lib/HTML/FormHandler/Fields.pm
Criterion Covered Total %
branch 39 50 78.0


line true false branch
72 14 2025 if $field->name eq $name
89 0 856 unless defined $name
90 749 9 if ($self->form and $self == $self->form and exists $self->index->{$name})
94 12 95 if ($name =~ /\./) { }
99 0 30 unless $f
106 92 43 if $field->name eq $name
109 3 0 unless $die
118 912 2 wantarray ? :
125 0 256 unless $self->has_fields
129 4 802 if $field->is_inactive or $field->disabled or not $field->has_result
132 713 89 if $field->has_value and not $field->noupdate
142 10 545 if $field->is_inactive or not $field->has_result
143 467 78 if $field->has_value and not $field->noupdate
153 0 146 unless $result
155 77 69 if ($self->isa('HTML::FormHandler'))
156 0 77 if $self->html_prefix
161 0 413 if $field->is_inactive or $field->password
163 10 403 if not defined $fif or ref $fif eq 'ARRAY' and not scalar @{$fif;}
164 69 334 if ($fld_result->has_results) { }
166 1 68 unless $next_params
173 2 144 unless %params
191 111 12 unless ($found)
193 20 91 if ($self->parent)
215 0 0 if $field->can('dump_validated')
216 0 0 $field->has_errors ? :