Branch Coverage

blib/lib/Mojo/Redis.pm
Criterion Covered Total %
branch 15 24 62.5


line true false branch
37 0 0 @_ ? :
42 5 7 unless @_ % 2 and ref $_[0] ne "HASH"
44 5 2 unless builtin::blessed($url) and $url->isa("Mojo::URL")
53 1 15 if (my(%url_args) = %{$self->url->query->to_hash;})
59 0 1 if %tls_options
60 0 1 if %tls_args
79 0 5 if $conn and $conn->is_connected
82 4 1 $conn ? :
89 0 0 if $conn->is_connected
5 5 unless $self->{'queue'}
98 2 0 if $conn->is_connected and $conn->url eq $self->url and $conn->ioloop eq "Mojo::IOLoop"->singleton
104 0 15 unless ($self->{'pid'} //= $$) eq $$