blib/lib/MooX/Attribute/ENV.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 17 | 22 | 77.2 |
line | true | false | branch |
---|---|---|---|
15 | 0 | 1 | unless my $orig = $target->can($name) |
16 | 0 | 1 | 'Moo::Role'->is_role($target) ? : |
26 | 0 | 5 | ref $namespec ? : |
28 | 0 | 5 | unless defined $envkey |
30 | 5 | 55 | if defined $ENV{$envkey} |
31 | 5 | 50 | if defined $ENV{uc $envkey} |
32 | 10 | 40 | if ref $old_default eq 'CODE' |
41 | 2 | 3 | if $opts->{'env'} |
42 | 1 | 2 | if $opts->{'env_key'} |
43 | 1 | 1 | if $opts->{'env_prefix'} |
44 | 1 | 0 | if ($opts->{'env_package_prefix'}) |