Branch Coverage

blib/lib/Mojolicious/Plugin/Validate/Tiny.pm
Criterion Covered Total %
branch 2 36 5.5


line true false branch
22 0 1 unless $conf
28 0 0 unless ref $rules ~~ ['ARRAY', 'HASH']
33 0 0 if ref $rules eq 'ARRAY'
46 0 0 if ($conf->{'autofields'})
50 0 0 if ref $field eq 'Regexp'
60 0 0 if ($conf->{'explicit'})
65 0 0 if $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 $stash->{'validate_tiny.was_called'}
158 0 0 if ($stash->{'controller'} and $stash->{'action'})