blib/lib/Mojo/Redis/Connection.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 45 | 64.4 |
line | l | !l | condition |
---|---|---|---|
173 | 0 | 5 | $self and undef |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
19 | 12 | 0 | 4 | defined $self->{'pid'} and $self->{'pid'} == $$ |
30 | 21 | 1 | 3 | $_[0]{'stream'} && !$_[0]{'gone_away'} |
55 | 1 | 7 | 1 | not $self->{'master_url'} and $url->query->param("sentinel") |
134 | 1 | 0 | 1 | ref $host_port and @$host_port == 2 |
202 | 10 | 0 | 2 | $m->{'type'} eq "*" and ref $m->{'data'} eq "ARRAY" |
1 | 0 | 9 | $m->{'type'} eq "\$" and $encoding | |
1 | 0 | 9 | $m->{'type'} eq "\$" and $encoding and defined $m->{'data'} |
line | l | !l | condition |
---|---|---|---|
9 | 0 | 18 | $ENV{'MOJO_REDIS_CONNECT_TIMEOUT'} || 10 |
10 | 0 | 18 | $ENV{'MOJO_REDIS_SENTINELS_CONNECT_TIMEOUT'} || 10 |
88 | 10 | 0 | $url->host || 'localhost' |
97 | 10 | 0 | $defaults->{'timeout'} || 10 |
105 | 0 | 2 | $url->query->param('sentinel_connect_timeout') || 10 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
54 | 1 | 8 | 0 | $self->{'master_url'} || $self->url |
94 | 8 | 1 | 0 | $url->port || $defaults->{'port'} |
236 | 0 | 2 | 0 | $err || $default |
237 | 3 | 1 | 0 | $err || $default |