blib/lib/Dancer2/Plugin/Adapter.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 20 | 65.0 |
line | true | false | branch |
---|---|---|---|
38 | 0 | 18 | unless ($name) |
45 | 0 | 18 | unless my $object_conf = $conf->{$name} |
50 | 0 | 18 | unless ($fetch_by_scope{$scope}) |
56 | 5 | 13 | if defined $cached |
60 | 0 | 13 | unless my $class = $object_conf->{'class'} |
62 | 0 | 13 | unless try_load_class($class) |
68 | 1 | 11 | defined $options ? : |
0 | 12 | ref $options eq 'ARRAY' ? : | |
1 | 12 | ref $options eq 'HASH' ? : | |
74 | 0 | 13 | unless my $object = eval { do { $class->$new(@options) } } |