line |
true |
false |
branch |
84
|
5 |
16 |
$param =~ /^@/ ? : |
86
|
5 |
16 |
if (ref $$rule[$i + 1] and ref $$rule[$i + 1] eq 'HASH') { } |
87
|
2 |
3 |
if (not $param =~ /^@/ || $VALIDATOR{'NOT_NULL'}($req, $$vals[0]) and exists $$rule[$i + 1]{'default'}) |
89
|
1 |
1 |
if ref $default and ref $default eq 'CODE' |
100
|
11 |
18 |
if (ref $$constraint[0] eq 'ARRAY') { } |
|
1 |
17 |
elsif (ref $$constraint[0] eq 'CODE') { } |
103
|
2 |
9 |
if (ref $constraint_name and ref $constraint_name eq 'CODE') |
105
|
2 |
1 |
unless (&$constraint_name($req, $val, @constraint)) |
113
|
0 |
9 |
unless exists $VALIDATOR{$constraint_name} |
114
|
2 |
7 |
if ($constraint_name =~ /^@/) { } |
115
|
1 |
1 |
unless ($VALIDATOR{$constraint_name}($req, $vals, @constraint)) |
123
|
3 |
6 |
unless ($VALIDATOR{$constraint_name}($req, $val, @constraint)) |
133
|
1 |
0 |
unless ($$constraint[0]($req, $val)) |
141
|
0 |
17 |
unless exists $VALIDATOR{$$constraint[0]} |
142
|
1 |
16 |
if ($$constraint[0] =~ /^@/) { } |
143
|
1 |
0 |
unless ($VALIDATOR{$$constraint[0]}($req, $vals)) |
151
|
4 |
15 |
unless ($VALIDATOR{$$constraint[0]}($req, $val)) |
160
|
9 |
12 |
unless $error |
180
|
11 |
7 |
if @{$$self{'errors'};} |
198
|
0 |
21 |
if (@_ == 2) { } |
|
21 |
0 |
elsif (@_ == 1) { } |
203
|
19 |
2 |
unless wantarray |