| line |
true |
false |
branch |
|
25
|
24 |
17 |
if (ref $_[0] eq 'HASH') { } |
|
33
|
0 |
41 |
unless $$args{'config'} |
|
38
|
1 |
40 |
if ($$args{'result_class'}) { } |
|
39
|
0 |
1 |
unless $$args{'result_class'}->require |
|
46
|
0 |
41 |
if ($self->unicode or $$self{'config'}{'unicode'}) |
|
47
|
0 |
0 |
unless 'Data::Visitor::Encode'->require |
|
77
|
0 |
40 |
unless shift() |
|
131
|
9 |
31 |
scalar @{$$storage{'missing'};} ? : |
|
132
|
12 |
28 |
scalar keys %{$$storage{'invalid'};} ? : |
|
133
|
18 |
22 |
$$storage{'has_missing'} || $$storage{'has_invalid'} ? : |
|
134
|
18 |
22 |
$$storage{'has_missing'} || $$storage{'has_invalid'} ? : |
|
159
|
10 |
31 |
if (scalar @{$$storage{'missing'};}) |
|
184
|
14 |
2 |
unless (exists $$error_messages{$field}) |
|
203
|
39 |
1 |
unless $self->config->{'setting'}{'merge'} |
|
207
|
1 |
0 |
if (ref $field eq 'HASH' and $$field{'format'} and $$field{'fields'}) |
|
240
|
1 |
51 |
if ($$profile{'use_fixed_method'} and $$profile{'use_fixed_method'}{$field}) { } |
|
265
|
12 |
65 |
unless exists $$storage{'valid'}{$field} |
|
274
|
0 |
82 |
if (ref $$storage{'valid'}{$field} eq 'ARRAY') { } |
|
278
|
0 |
0 |
if ($$validator{'method'}($value, $stash)) { } |
|
293
|
0 |
0 |
unless ($$profile{'want_array'}{$field}) |
|
301
|
67 |
15 |
if ($$validator{'method'}($value, $stash)) { } |
|
303
|
0 |
67 |
if ($$profile{'want_array'}{$field}) |
|
316
|
13 |
52 |
if $is_invalid |
|
329
|
10 |
57 |
unless (defined $validators) |
|
335
|
14 |
0 |
if ($field =~ qr/$regexp/) |
|
341
|
10 |
0 |
if (scalar @validators) |
|
344
|
0 |
10 |
unless $validators |
|
355
|
32 |
8 |
unless defined $$profile{'dependencies'} |
|
359
|
8 |
0 |
if (defined $$storage{'valid'}{$field}) |
|
360
|
8 |
0 |
if (ref $deps eq 'HASH') { } |
|
|
0 |
0 |
elsif (ref $deps eq 'CODE') { } |
|
365
|
0 |
8 |
if (ref $$storage{'valid'}{$field} eq 'ARRAY' and scalar @{$$storage{'valid'}{$field};} == 1) { } |
|
372
|
6 |
2 |
if ($val_to_compare eq $key) |
|
401
|
0 |
0 |
unless defined $$profile{'dependencies'} |
|
404
|
0 |
0 |
if ($$storage{'valid'}{$field}) |
|
417
|
40 |
0 |
unless defined $$profile{'dependency_groups'} |
|
425
|
0 |
0 |
if $$storage{'valid'}{$field} |
|
427
|
0 |
0 |
if ($require_all) |
|
442
|
11 |
64 |
unless exists $$storage{'valid'}{$field} |
|
444
|
11 |
64 |
unless exists $$storage{'valid'}{$field} |
|
504
|
1 |
1 |
unless (defined $$storage{'valid'}{$field}) |
|
508
|
42 |
0 |
if (defined $self->rule->defaults) |