| blib/lib/Convert/Pluggable.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 17 | 20 | 85.0 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 116 | 4 | 358 | 0 | $matches->{'type_1'} and $matches->{'type_2'} |
| 127 | 274 | 36 | 36 | $conversion->{'factor'} < 0 and not $matches->{'can_be_negative_1'} |
| 156 | 268 | 42 | 0 | $factor < 0 and not $matches->{'can_be_negative_2'} |
| line | l | !l | condition |
|---|---|---|---|
| 84 | 208 | 508 | $type->{'can_be_negative'} || '0' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 78 | 480 | 236 | 109332 | lc $match eq $type->{'unit'} or grep {$_ eq lc $match;} @{$$type{'aliases'};} |
| 123 | 2 | 2 | 346 | &float_is_infinite($conversion->{'factor'}) or &float_is_nan($conversion->{'factor'}) |
| 161 | 8 | 0 | 302 | $conversion->{'precision'} || $DEFAULT_PRECISION |