blib/lib/DBIx/DSN/Resolver/Cached.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 14 | 24 | 58.3 |
line | true | false | branch |
---|---|---|---|
15 | 0 | 3 | @_ == 1 ? : |
16 | 1 | 2 | exists $args{'ttl'} ? : |
17 | 0 | 3 | exists $args{'negative_ttl'} ? : |
18 | 0 | 3 | exists $args{'cache'} ? : |
21 | 21 | 3 | if (my $cached = $cache->get($host)) |
22 | 0 | 21 | if @$cached == 0 |
23 | 21 | 0 | if (exists $RR{$host}) { } |
25 | 21 | 0 | if $RR{$host} >= scalar @$cached |
32 | 0 | 2 | unless (defined $name) |
50 | 0 | 3 | unless $dsn |
52 | 0 | 2 | unless my $resolved = $RESOLVER->resolv($dsn) |
54 | 0 | 2 | @_ ? : |