Branch Coverage

blib/lib/MojoX/Redis.pm
Criterion Covered Total %
branch 18 34 52.9


line true false branch
56 0 1 unless &List::Util::first(sub { $_ eq $cmd; } , @COMMANDS)
62 0 1 if (ref $cb ne 'CODE') { }
76 0 0 unless my $loop = $self->ioloop
79 0 0 if $$self{'_connection'}
87 0 1 if ($self->connected)
108 0 1 if ($err)
164 0 5 if (not $cb and ref $args eq 'CODE') { }
4 1 elsif (not ref $args) { }
181 1 4 unless $$self{'_connection'}
212 0 1 unless $protocol
221 5 1 if (my $id = $$self{'_connection'} and not $$self{'_connecting'})
226 11 0 if $self->encoding
244 3 0 if ($type ne '*' and $self->encoding and $data)
248 0 3 if ($type eq '-') { }
3 0 elsif ($type ne '*') { }
272 3 0 if $cb
283 2 0 if $cb