| 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+$/ |
| 75 | 1 | 6 | if $@ |
| 79 | 0 | 6 | unless ($redis->ping) |
| 89 | 2 | 4 | $params{'read_only'} ? : |
| 92 | 2 | 4 | if ref $res eq "HASH" |
| 104 | 0 | 2 | if $error |
| 113 | 0 | 0 | unless $key or $params{'key_name'} |
| 117 | 1 | 1 | unless defined $val |
| 134 | 1 | 3 | if defined $redis->get($key) |
| 148 | 0 | 3 | unless defined $val |