Branch Coverage

blib/lib/Mojolicious/Plugin/Validate/Tiny.pm
Criterion Covered Total %
branch 2 38 5.2


line true false branch
20 0 1 unless $conf
29 0 0 if &none(sub { $_ eq ref $rules; } , 'ARRAY', 'HASH')
33 0 0 if ref $rules eq 'ARRAY'
43 0 0 unless $c->stash('mojo.captures')
46 0 0 if ($conf->{'autofields'})
50 0 0 if ref $field eq 'Regexp'
60 0 0 if ($conf->{'explicit'})
65 0 0 if &any(sub { $_ eq $f; } , @{$$conf{'exclude'};})
66 0 0 unless exists $h{$f}
69 0 0 if (@fields_wo_rules)
85 0 0 if ('Validate::Tiny'->can('check')) { }
94 0 0 if ($result->success) { }
110 0 0 unless $errors and keys %$errors
120 0 0 unless defined $name
122 0 0 if ($errors and defined $errors->{$name})
131 0 0 unless $c->validator_has_errors
143 0 0 if ($errors)
156 0 1 if $c->flash('validate_tiny.was_called')
160 0 0 if ($stash->{'controller'} and $stash->{'action'})