Branch Coverage

blib/lib/Mojolicious/Validator/Validation.pm
Criterion Covered Total %
branch 27 28 96.4


line true false branch
17 65 0 if $dynamic
26 8 57 unless $self->is_valid
31 8 49 ref $values eq 'ARRAY' ? :
32 42 22 unless my $result = $self->$cb($name, $value, @_)
42 6 4 unless $token and $token eq ($self->csrf_token // "")
48 24 33 unless @_
55 2 8 unless defined(my $value = $_[0]->output->{$_[1] // $_[0]->topic})
56 2 6 ref $value eq 'ARRAY' ? :
63 196 36 $_[1] ? :
70 11 76 unless defined(my $input = $self->input->{$name})
72 22 54 ref $input eq 'ARRAY' ? :
76 13 57 @input > 1 ? :
70 6 if @input and not grep({not defined $_;} @input)
87 58 4 if $self->optional($name, @_)->is_valid