| blib/lib/Mojo/Redis2.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 18 | 46 | 39.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 38 | 5 | 0 | 1786 | $self->{'url'} and ref $self->{'url'} eq '' |
| 180 | 0 | 0 | 0 | not $loop->is_running and $stream->is_readable |
| 272 | 0 | 0 | 0 | ref $data eq 'ARRAY' and $data->[0] |
| 0 | 0 | 0 | ref $data eq 'ARRAY' and $data->[0] and $data->[0] =~ /^(p?message)$/i | |
| 293 | 0 | 0 | 0 | $type ne '*' and $self->encoding |
| 0 | 0 | 0 | $type ne '*' and $self->encoding and $data |
| line | l | !l | condition |
|---|---|---|---|
| 10 | 0 | 32 | $ENV{'MOJO_REDIS_DEBUG'} || 0 |
| 31 | 1 | 2 | $ENV{'MOJO_REDIS_URL'} || 'redis://localhost:6379' |
| 121 | 1783 | 5 | $url->userinfo // '' |
| 150 | 1787 | 1 | $url->port || 6379 |
| 211 | 0 | 2 | $self->{'connections'}{$group} ||= {'nb', 1, 'group', $group} |
| 217 | 0 | 1782 | $self->{'connections'}{$self->_blocking_group} ||= {'nb', 0, 'group', $self->_blocking_group} |
| 273 | 0 | 0 | shift @{$$c{'waiting'};} || [] |
| 281 | 0 | 0 | shift @{$$c{'waiting'};} || [] |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 31 | 1790 | 3 | 0 | $_[0]{'url'} ||= 'Mojo::URL'->new($ENV{'MOJO_REDIS_URL'} || 'redis://localhost:6379') |
| 194 | 0 | 1782 | 0 | $c->{'waiting'} || $c->{'queue'} |
| 208 | 1 | 1783 | 0 | $self->{'pid'} //= $$ |
| 229 | 5346 | 1786 | 0 | $_[0]{'ioloop'} ||= 'Mojo::IOLoop'->new |