| blib/lib/Mojolicious/Plugin/Validator.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 11 | 18 | 61.1 |
| line | true | false | branch |
|---|---|---|---|
| 26 | 3 | 9 | unless ($class_name =~ /[A-Z]/) |
| 28 | 3 | 0 | if $namespace =~ /^Mojolicious::Lite/ |
| 36 | 0 | 12 | if ref $e |
| 39 | 0 | 12 | if $e |
| 41 | 1 | 11 | unless $class_name->isa('MojoX::Validator') |
| 56 | 3 | 7 | if $validator->validate($params) |
| 75 | 0 | 0 | unless $errors and keys %$errors |
| 86 | 0 | 6 | unless my $errors = $self->stash('validator_errors') |
| 88 | 0 | 6 | unless my $message = $$errors{$name} |