blib/lib/Params/Dry/Types/Number.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 23 | 30 | 76.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
31 | 4 | 5 | 0 | $_[1] and $1 |
0 | 3 | 2 | $_[1] and $1 and length $1 > $_[1] | |
42 | 5 | 6 | 0 | $_[1] and $1 |
0 | 4 | 2 | $_[1] and $1 and length $1 > $_[1] | |
43 | 7 | 2 | 0 | $_[2] and $2 |
0 | 1 | 1 | $_[2] and $2 and length $2 > $_[2] + 1 | |
53 | 1 | 4 | 0 | not ref $_[0] and "$_[0]" eq '0' || "$_[0]" eq 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
30 | 3 | 3 | 9 | ref $_[0] or not $_[0] =~ /^[+\-]?(\d+)$/ |
41 | 1 | 1 | 11 | ref $_[0] or not $_[0] =~ /^[+\-]?(\d+(\.\d+)?)$/ |
53 | 1 | 2 | 1 | "$_[0]" eq '0' || "$_[0]" eq 1 |