Branch Coverage

blib/lib/Plack/Middleware/Session/Simple/JWSCookie.pm
Criterion Covered Total %
branch 9 46 19.5


line true false branch
23 0 4 unless blessed $store and $store->can('get') and $store->can('set') and $store->can('remove')
29 0 4 unless $self->cookie_name
30 4 0 unless defined $self->path
31 3 1 unless defined $self->keep_empty
33 4 0 unless ($self->sid_generator)
38 4 0 unless ($self->sid_validator)
45 3 1 if (not $self->secret && $self->alg) { }
50 0 0 unless $self->alg eq 'HS256' or $self->alg eq 'HS384' or $self->alg eq 'HS512'
58 0 0 unless defined $cookie
63 0 0 if $@ or not $$payload{'id'}
66 0 0 unless $id =~ /$$self{'sid_validator'}/
68 0 0 unless my $session = $$self{'store'}->get($id)
69 0 0 if $$self{'serializer'}
79 0 0 if ($new_session and $$self{'keep_empty'} and not $session->has_key or $$session[1] or $$options{'expire'} or $$options{'change_id'})
83 0 0 if $$options{'no_store'}
86 0 0 if ($new_session and $$self{'keep_empty'} and not $session->has_key or $new_session and $$session[1] or $$options{'expire'} or $$options{'change_id'})
92 0 0 if ($need_store)
93 0 0 if ($$options{'expire'}) { }
0 0 elsif ($$options{'change_id'}) { }
99 0 0 if $$self{'serializer'}
103 0 0 if $$self{'serializer'}
108 0 0 if ($set_cookie)
110 0 0 if ($$options{'expire'}) { }