blib/lib/Validator/Custom/CheckFunction.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 22 | 26 | 84.6 |
line | true | false | branch |
---|---|---|---|
11 | 1 | 3 | unless defined $value |
21 | 2 | 24 | unless defined $value |
24 | 13 | 11 | if ($arg) |
25 | 0 | 13 | unless ref $arg eq 'HASH' |
30 | 0 | 13 | unless $decimal_part_max > 0 |
33 | 0 | 13 | if keys %$arg |
37 | 13 | 11 | if (defined $decimal_part_max) { } |
38 | 7 | 6 | if ($value =~ /^-?[0-9]+(\.[0-9]{0,$decimal_part_max})?$/) { } |
46 | 7 | 4 | if ($value =~ /^-?[0-9]+(\.[0-9]*)?$/) { } |
58 | 1 | 8 | unless defined $value |
68 | 1 | 2 | unless defined $value |
72 | 0 | 2 | unless ref $valid_values eq 'ARRAY' |
76 | 1 | 1 | $match > 0 ? : |