Branch Coverage

blib/lib/Mojolicious/Plugin/KossyValidator.pm
Criterion Covered Total %
branch 0 42 0.0


line true false branch
115 0 0 $param =~ /^@/ ? :
117 0 0 if (ref $$rule[$i + 1] and ref $$rule[$i + 1] eq 'HASH') { }
118 0 0 if (not $param =~ /^@/ || $VALIDATOR{'NOT_NULL'}($req, $$vals[0]) and exists $$rule[$i + 1]{'default'})
130 0 0 if (ref $$constraint[0] eq 'ARRAY') { }
0 0 elsif (ref $$constraint[0] eq 'CODE') { }
133 0 0 if (ref $constraint_name and ref $constraint_name eq 'CODE')
135 0 0 unless (&$constraint_name($req, $val, @constraint))
143 0 0 unless exists $VALIDATOR{$constraint_name}
144 0 0 if ($constraint_name =~ /^@/) { }
145 0 0 unless ($VALIDATOR{$constraint_name}($req, $vals, @constraint))
153 0 0 unless ($VALIDATOR{$constraint_name}($req, $val, @constraint))
163 0 0 unless ($$constraint[0]($req, $val))
171 0 0 unless exists $VALIDATOR{$$constraint[0]}
172 0 0 if ($$constraint[0] =~ /^@/) { }
173 0 0 unless ($VALIDATOR{$$constraint[0]}($req, $vals))
181 0 0 unless ($VALIDATOR{$$constraint[0]}($req, $val))
190 0 0 unless $error
214 0 0 if @{$$self{'errors'};}
232 0 0 if (@_ == 2) { }
0 0 elsif (@_ == 1) { }
237 0 0 unless wantarray