Condition Coverage

blib/lib/Mojo/Redis2.pm
Criterion Covered Total %
condition 18 46 39.1


and 3 conditions

line !l l&&!r l&&r condition
38 5 0 1885 $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

or 2 conditions

line l !l condition
10 0 34 $ENV{'MOJO_REDIS_DEBUG'} || 0
31 1 2 $ENV{'MOJO_REDIS_URL'} || 'redis://localhost:6379'
121 1882 5 $url->userinfo // ''
150 1886 1 $url->port || 6379
211 0 2 $self->{'connections'}{$group} ||= {'nb', 1, 'group', $group}
217 0 1881 $self->{'connections'}{$self->_blocking_group} ||= {'nb', 0, 'group', $self->_blocking_group}
273 0 0 shift @{$$c{'waiting'};} || []
281 0 0 shift @{$$c{'waiting'};} || []

or 3 conditions

line l !l&&r !l&&!r condition
31 1889 3 0 $_[0]{'url'} ||= 'Mojo::URL'->new($ENV{'MOJO_REDIS_URL'} || 'redis://localhost:6379')
194 0 1881 0 $c->{'waiting'} || $c->{'queue'}
208 1 1882 0 $self->{'pid'} //= $$
229 5643 1885 0 $_[0]{'ioloop'} ||= 'Mojo::IOLoop'->new