| blib/lib/MooX/Attribute/ENV.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 23 | 28 | 82.1 |
| line | true | false | branch |
|---|---|---|---|
| 15 | 0 | 4 | unless my $orig = $target->can($name) |
| 16 | 0 | 4 | 'Moo::Role'->is_role($target) ? : |
| 28 | 1 | 6 | unless keys %$env_opts |
| 29 | 0 | 6 | ref $namespec ? : |
| 36 | 1 | 18 | @args == 1 && ref $args[0] eq 'HASH' ? : |
| 38 | 0 | 71 | if exists $args{$attr} |
| 40 | 16 | 55 | if defined $value |
| 47 | 6 | 65 | ref $_[0] eq 'ARRAY' ? : |
| 49 | 8 | 65 | if exists $ENV{$envkey} |
| 50 | 8 | 57 | if exists $ENV{uc $envkey} |
| 65 | 2 | 4 | if $opts->{'env'} |
| 66 | 2 | 2 | if $opts->{'env_key'} |
| 67 | 1 | 1 | if $opts->{'env_prefix'} |
| 68 | 1 | 0 | if ($opts->{'env_package_prefix'}) |