Branch Coverage

blib/lib/Ark/Form.pm
Criterion Covered Total %
branch 37 74 50.0


line true false branch
111 2 2 unless ($cloned{$target}++)
136 10 0 $context ? :
155 10 0 $self->can('custom_validation') ? :
0 10 $self->_widgets_class ? :
164 0 11 if ($value)
179 2 2 unless $class->_fields_messages
180 2 2 if (my $messages = delete $params{'messages'})
181 0 2 unless $messages
187 2 2 unless $class->_fields_data
188 0 4 if ($overwrite) { }
189 0 0 unless my $data = $class->_fields_data->{$name}
203 2 2 unless $class->_fields_data_order
205 4 0 unless grep {$_ eq $name;} @{$class->_fields_data_order;}
211 0 1 unless my $field = $self->field($name)
212 0 1 unless my $label = $field->label
214 1 0 unless ($field->id)
225 0 3 unless my $field = $self->field($name)
231 0 1 unless $name
240 0 0 if $self->is_error($name)
241 0 0 defined $self->param($name) ? :
254 27 0 if $self->context
259 0 0 if $_[0] eq ''
260 0 0 if $self->needs_localize
265 0 5 unless $self->is_error($name)
268 0 5 unless $self->_shakan->_fvl->{'_error_ary'}
0 5 unless my($error) = grep({$_->[0] eq $name;} @{[] unless $self->_shakan->_fvl->{'_error_ary'};})
276 0 1 unless $self->is_error($name)
279 0 1 unless $self->_shakan->_fvl->{'_error_ary'}
0 1 unless my(@errors) = grep({$_->[0] eq $name;} @{[] unless $self->_shakan->_fvl->{'_error_ary'};})
289 6 1 $field ? :
292 0 7 unless $self->messages
293 0 7 unless $self->_fields_messages
299 0 7 unless ($message)
304 0 7 if ($self->needs_localize) { }
323 1 2 unless $self->submitted
330 0 0 unless $self->error_messages_plain($name)
335 0 0 @_ > 1 ? :