| blib/lib/Constant/FromGlobal.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 18 | 18 | 100.0 |
| line | true | false | branch |
|---|---|---|---|
| 15 | 10 | 5 | ref $args[0] eq 'HASH' ? : |
| 56 | 20 | 2 | if (not defined $value and $args{'env'}) |
| 60 | 4 | 22 | if (not defined $value and defined $args{'default'}) |
| 64 | 8 | 18 | if ($args{'bool'}) { } |
| 17 | 1 | elsif (defined $value) { } | |
| 67 | 5 | 12 | if ($args{'num'}) { } |
| 7 | 5 | elsif ($args{'int'}) { } | |
| 69 | 1 | 4 | unless &Scalar::Util::looks_like_number($value) |
| 72 | 1 | 6 | unless $value =~ /^\s* -? \d+ \s*$/x |