blib/lib/HealthCheck/Diagnostic/Redis.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 13 | 20 | 65.0 |
line | true | false | branch |
---|---|---|---|
19 | 0 | 2 | @params == 1 && (ref $params[0] || '') eq 'HASH' ? : |
32 | 2 | 3 | if (ref $self) |
38 | 1 | 4 | unless $params{'host'} |
49 | 0 | 4 | $name ? : |
52 | 4 | 0 | unless $host =~ /:\d+$/ |
72 | 1 | 3 | if $@ |
76 | 0 | 3 | unless ($redis->ping) |
85 | 0 | 3 | if $error |
91 | 3 | 0 | if ($key) |
94 | 0 | 3 | unless defined $val |