blib/lib/MooX/Attribute/ENV.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 19 | 26 | 73.0 |
line | true | false | branch |
---|---|---|---|
15 | 0 | 2 | unless my $orig = $target->can($name) |
16 | 0 | 2 | 'Moo::Role'->is_role($target) ? : |
28 | 0 | 5 | unless keys %$env_opts |
29 | 0 | 5 | ref $namespec ? : |
36 | 0 | 13 | @args == 1 && ref $args[0] eq 'HASH' ? : |
38 | 0 | 65 | if exists $args{$attr} |
40 | 10 | 55 | if defined $value |
48 | 5 | 60 | if exists $ENV{$envkey} |
49 | 5 | 55 | if exists $ENV{uc $envkey} |
63 | 2 | 3 | if $opts->{'env'} |
64 | 1 | 2 | if $opts->{'env_key'} |
65 | 1 | 1 | if $opts->{'env_prefix'} |
66 | 1 | 0 | if ($opts->{'env_package_prefix'}) |