Branch Coverage

blib/lib/Mojo/Redis/PubSub.pm
Criterion Covered Total %
branch 14 44 31.8


line true false branch
32 0 0 if ++$_[0]{'json'}{$_[1]}
42 1 1 ref $_[-1] eq 'CODE' ? :
49 1 0 unless (@{$self->{'chans'}{$name} ||= [];})
50 0 1 if $self->{'reconnect_tid'}
51 0 1 $name =~ /\*/u ? :
60 0 0 if $self->{'json'}{$name}
72 1 1 $cb ? :
73 2 0 unless (@$chans)
75 0 0 $name =~ /\*/u ? :
0 2 if $conn->is_connected
85 6 4 ref $_[-1] eq 'HASH' ? :
93 6 4 $args->{'type'} eq 'keyevent' ? :
101 0 0 if $delay < 0 or $self->{'reconnect_tid'}
106 0 0 if $self
114 0 0 if delete $self->{'reconnect'}
116 0 0 unless ref $res eq "ARRAY"
117 0 0 unless $res->[0] =~ /^p?message$/iu
118 0 0 $res->[0] eq 'pmessage' ? :
119 0 0 if $self->{'json'}{$res->[1]}
121 0 0 $keyspace_listen ? :
127 0 0 /\*/u ? :
133 1 0 unless $self->{'before_connect'}++