Branch Coverage

blib/lib/Form/Tiny/FieldDefinition.pm
Criterion Covered Total %
branch 40 44 90.9


line true false branch
101 16 277 if ($self->coerce and ref $self->coerce ne "CODE")
105 2 14 unless $self->has_type and ($t->can("coerce") and $t->can("has_coercion") and $t->has_coercion)
110 12 279 if ($self->has_default)
113 4 8 if scalar grep({$_ eq "ARRAY";} @{$self->get_name_path->meta;})
129 62 282 if ($coerce)
131 29 33 if (ref $coerce eq 'CODE') { }
139 3 59 if ($error)
140 0 3 $self->has_message ? :
159 6 269 if ($self->is_subform)
163 251 24 unless $self->is_adjusted
171 0 20 unless $self->has_default
175 1 19 if ($self->is_subform)
177 0 1 unless $subform->check($default)
192 199 145 if ($self->has_type)
193 8 191 if ($self->has_message) { }
194 4 4 unless $self->type->check($value)
199 62 129 if defined $error
204 5 339 if (@errors == 0 and my $validators = $self->addons->{'validators'})
208 4 5 unless (&$code($form, $value))
215 6 64 if (ref $error eq 'ARRAY' and $self->is_subform) { }
217 6 0 if (defined &blessed($exception) and $exception->isa('Form::Tiny::Error')) { }
219 3 3 if defined $exception->field