Condition Coverage

blib/lib/Plack/Middleware/Session/Simple/JWSCookie.pm
Criterion Covered Total %
condition 7 56 12.5


and 3 conditions

line !l l&&!r l&&r condition
23 0 0 4 blessed $store and $store->can('get')
0 0 4 blessed $store and $store->can('get') and $store->can('set')
0 0 4 blessed $store and $store->can('get') and $store->can('set') and $store->can('remove')
45 3 0 1 $self->secret && $self->alg
79 0 0 0 $new_session and $$self{'keep_empty'}
0 0 0 $new_session and $$self{'keep_empty'} and not $session->has_key
86 0 0 0 $new_session and $$self{'keep_empty'}
0 0 0 $new_session and $$self{'keep_empty'} and not $session->has_key
0 0 0 $new_session and $$session[1]

or 2 conditions

line l !l condition
57 0 0 $$env{'HTTP_COOKIE'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
50 1 0 0 $self->alg eq 'HS256' or $self->alg eq 'HS384'
1 0 0 $self->alg eq 'HS256' or $self->alg eq 'HS384' or $self->alg eq 'HS512'
63 0 0 0 $@ or not $$payload{'id'}
79 0 0 0 $new_session and $$self{'keep_empty'} and not $session->has_key or $$session[1]
0 0 0 $new_session and $$self{'keep_empty'} and not $session->has_key or $$session[1] or $$options{'expire'}
0 0 0 $new_session and $$self{'keep_empty'} and not $session->has_key or $$session[1] or $$options{'expire'} or $$options{'change_id'}
86 0 0 0 $new_session and $$self{'keep_empty'} and not $session->has_key or $new_session and $$session[1]
0 0 0 $new_session and $$self{'keep_empty'} and not $session->has_key or $new_session and $$session[1] or $$options{'expire'}
0 0 0 $new_session and $$self{'keep_empty'} and not $session->has_key or $new_session and $$session[1] or $$options{'expire'} or $$options{'change_id'}