blib/lib/HealthCheck/Diagnostic/Redis.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 20 | 28 | 71.4 |
line | true | false | branch |
---|---|---|---|
20 | 0 | 2 | @params == 1 && (ref $params[0] || '') eq 'HASH' ? : |
33 | 2 | 6 | if (ref $self) |
39 | 1 | 7 | unless $params{'host'} |
50 | 0 | 7 | $name ? : |
53 | 7 | 0 | unless $host =~ /:\d+$/ |
73 | 1 | 6 | if $@ |
77 | 0 | 6 | unless ($redis->ping) |
87 | 2 | 4 | $params{'read_only'} ? : |
90 | 2 | 4 | if ref $res eq 'HASH' |
102 | 0 | 2 | if $error |
111 | 0 | 0 | unless $key or $params{'key_name'} |
115 | 1 | 1 | unless defined $val |
132 | 1 | 3 | if defined $redis->get($key) |
146 | 0 | 3 | unless defined $val |