Branch Coverage

blib/lib/Form/Tiny/FieldDefinition.pm
Criterion Covered Total %
branch 41 44 93.1


line true false branch
102 16 284 if ($self->coerce and ref $self->coerce ne "CODE")
106 2 14 unless $self->has_type and ($t->can("coerce") and $t->can("has_coercion") and $t->has_coercion)
111 15 283 if ($self->has_default)
114 4 11 if scalar grep({$_;} @{$self->get_name_path->meta_arrays;})
130 62 296 if ($coerce)
132 29 33 if (ref $coerce eq 'CODE') { }
140 3 59 if ($error)
141 0 3 $self->has_message ? :
160 8 273 if $self->is_subform
163 254 27 unless $self->is_adjusted
171 0 22 unless $self->has_default
175 2 20 if ($self->is_subform)
177 1 1 unless $subform->check($default)
192 213 145 if ($self->has_type)
193 8 205 if ($self->has_message) { }
194 4 4 unless $self->type->check($value)
199 70 135 if defined $error
204 5 353 if (@errors == 0 and my $validators = $self->addons->{'validators'})
208 4 5 unless (&$code($form, $value))
215 10 68 if (ref $error eq 'ARRAY' and $self->is_subform) { }
218 10 0 if (defined builtin::blessed($exception) and $exception->isa("Form::Tiny::Error"))
222 7 3 if defined $exception->field