Branch Coverage

blib/lib/Params/Dry/Types/Number.pm
Criterion Covered Total %
branch 12 12 100.0


line true false branch
30 6 9 if ref $_[0] or not $_[0] =~ /^[+\-]?(\d+)$/
31 2 3 if $_[1] and $1 and length $1 > $_[1]
41 2 11 if ref $_[0] or not $_[0] =~ /^[+\-]?(\d+(\.\d+)?)$/
42 2 4 if $_[1] and $1 and length $1 > $_[1]
43 1 1 if $_[2] and $2 and length $2 > $_[2] + 1
53 3 1 if not ref $_[0] and "$_[0]" eq '0' || "$_[0]" eq 1