Condition Coverage

blib/lib/Plack/Middleware/Session/Simple.pm
Criterion Covered Total %
condition 3 61 4.9


and 3 conditions

line !l l&&!r l&&r condition
31 0 0 3 &blessed($store) and $store->can('get')
0 0 3 &blessed($store) and $store->can('get') and $store->can('set')
0 0 3 &blessed($store) and $store->can('get') and $store->can('set') and $store->can('remove')
60 0 0 0 $id and $session
104 0 0 0 $new_session and $self->{'keep_empty'}
0 0 0 $new_session and $self->{'keep_empty'} and not $session->has_key
111 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]
150 0 0 0 not exists $options{'domain'} and defined $self->{'domain'}
151 0 0 0 not exists $options{'secure'} and defined $self->{'secure'}
152 0 0 0 not exists $options{'httponly'} and defined $self->{'httponly'}
154 0 0 0 not exists $options{'expires'} and defined $self->{'expires'}

or 2 conditions

line l !l condition
89 0 0 $env->{'HTTP_COOKIE'} || ''
149 0 0 $self->{'path'} || '/'

or 3 conditions

line l !l&&r !l&&!r condition
104 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'}
111 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'}