blib/lib/Thrift/Parser/Type/Number.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 14 | 85.7 |
line | true | false | branch |
---|---|---|---|
33 | 0 | 48 | unless defined $value |
35 | 2 | 46 | if (blessed $value) |
36 | 1 | 1 | unless ($value->isa($class)) |
42 | 1 | 45 | if ($class eq 'Thrift::Parser::Type::double') { } |
43 | 0 | 1 | unless ($value =~ /^-?\d+\.?\d*$/) |
48 | 6 | 39 | unless ($value =~ /^-?\d+$/) |
54 | 4 | 35 | if abs $value * 1 > $class->_max_value |