blib/lib/Plack/Middleware/Throttle/Lite/Backend/Redis.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 20 | 65.0 |
line | true | false | branch |
---|---|---|---|
27 | 0 | 17 | if $$args{'password'} |
31 | 3 | 14 | if ($$instance{'unix'}) |
32 | 3 | 0 | unless -e $$instance{'thru'} and -S _ |
35 | 0 | 14 | $$instance{'unix'} ? : |
40 | 14 | 0 | unless ref $_handle eq 'Redis' |
51 | 1 | 16 | unless $instance |
54 | 3 | 13 | if ($instance =~ m[^(unix:)?(/.+)$]i) |
59 | 13 | 0 | if ($instance =~ /^((tcp|inet):)?(.+)$/i) |
62 | 5 | 8 | $port && ($port > 0 && $port <= 65535) ? : |
82 | 0 | 0 | unless $self->redis->get($self->cache_key) |