Branch Coverage

blib/lib/Mojo/Redis/Database.pm
Criterion Covered Total %
branch 16 56 28.5


line true false branch
60 0 0 ref $_[-1] eq 'CODE' ? :
62 0 0 $cb ? :
65 0 0 if ($cb)
73 0 0 if $err
99 0 1 ref $_[-1] eq 'CODE' ? :
105 0 0 if @p
119 3040 3097 $type eq 'p' ? :
131 0 19 if &blessed($_[0]) and $_[0]->isa("Mojo::Redis::Connection")
133 7 12 $_[0] ? :
141 0 4 ref $_[-1] eq 'CODE' ? :
144 0 4 $cb ? :
145 0 4 if $process
148 0 4 if ($cb)
156 3 1 if defined $err
166 0 0 $process ? :
178 0 1 $process ? :
184 0 0 ref $_ ? :
0 0 ref $_[1] eq 'ARRAY' ? :
186 0 0 ref $_[1] eq 'ARRAY' ? :
187 0 0 ref $_[1] eq 'ARRAY' ? :
188 0 0 ref $_[1] eq 'ARRAY' ? :
196 0 0 if (/^\#\s+(\S+)/u) { }
0 0 elsif (/(\S+):(\S+)/u) { }
204 0 0 CORE::keys %res == 1 ? :
208 0 0 unless ref $_[1] eq "ARRAY"
215 0 12 if (my $txn = delete $self->{'txn'}) { }
10 2 elsif (my $redis = $self->{'redis'} and my $conn = $self->{'_conn_dequeue'}) { }
216 0 0 if $txn eq "blocking"