blib/lib/Validator/Declarative/Rules/ParametrizedType.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 27 | 32 | 84.3 |
line | l | !l | condition |
---|---|---|---|
39 | 11 | 4 | ref $input eq $_ and return |
48 | 8 | 5 | $input->isa($_) and return |
64 | 6 | 2 | $input->can($_) and return |
72 | 228 | 20 | _smart_match($input, $_) and return |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
23 | 4 | 0 | 9 | looks_like_number $input && looks_like_number $param |
30 | 4 | 0 | 9 | looks_like_number $input && looks_like_number $param |
54 | 36 | 20 | 0 | blessed $input and $param |
62 | 9 | 5 | 0 | blessed $input and $param |
99 | 216 | 16 | 16 | looks_like_number $x and looks_like_number $y |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
23 | 4 | 7 | 2 | not looks_like_number $input && looks_like_number $param or $input < $param |
30 | 4 | 2 | 7 | not looks_like_number $input && looks_like_number $param or $input > $param |
56 | 10 | 14 | 0 | $input->can($_) or 'Error::Simple'->throw('does not satisfy CAN') |