Branch Coverage

lib/Plack/Session/Store/RedisFast.pm
Criterion Covered Total %
branch 6 34 17.6


line true false branch
21 2 0 unless defined $param{'prefix'}
22 0 2 if (exists $param{'expire'})
27 2 0 unless exists $param{'expires'}
29 2 0 unless (defined $param{'redis'})
33 2 0 if (ref $param{'redis'} eq 'CODE')
41 0 0 unless ref $param{'encoder'}
52 2 0 unless (eval { do { require Redis::Fast; $instance = 'Redis::Fast'->new; 1 } })
61 0 0 if ($inflate and $deflate)
75 0 0 unless (eval { do { require Plack::Session::Store::RedisFast::Encoder::JSONXS; $instance = 'Plack::Session::Store::RedisFast::Encoder::JSONXS'->new; 1 } } or do { require Plack::Session::Store::RedisFast::Encoder::MojoJSON; $instance = 'Plack::Session::Store::RedisFast::Encoder::MojoJSON'->new })
85 0 0 unless defined $data
91 0 0 unless (defined $session)
96 0 0 defined $self->expires ? :
111 0 0 if ref $cb ne 'CODE'
122 0 0 if (scalar @$keys > 0)
126 0 0 unless $sessions[$i]
128 0 0 unless $keys->[$i] =~ /^\Q$prefix\E(.+)$/
138 0 0 if $cursor == 0