Branch Coverage

blib/lib/Mojolicious/Sessions/ThreeS.pm
Criterion Covered Total %
branch 29 42 69.0


line true false branch
104 2 0 unless ($self->was_set)
118 6 2 unless ($self->was_set)
131 2 2 unless ($self->was_set)
144 2 0 unless ($self->was_set)
157 3 32 unless ($self->was_set)
161 22 10 unless ($session_id)
166 0 10 unless ($session)
175 0 10 defined $session->{'expiration'} ? :
180 0 10 if ($expiration and not $expires)
186 0 10 if (defined $expires and $expires <= time)
193 0 10 unless $controller->stash->{'mojo.active_session'} = scalar keys %$session
203 4 6 if $session->{'new_flash'}
217 3 22 unless ($self->was_set)
225 0 22 unless ($session)
227 8 0 unless (keys %$session or $stash->{'mojo.active_session'})
235 0 14 if ($stash->{'mojo.static'})
243 10 4 unless $session->{'new_flash'}
10 4 unless (keys %{{} unless $session->{'new_flash'};})
249 0 14 if (defined $session->{'mojox.sessions3s.old_id'})
255 0 14 defined $session->{'expiration'} ? :
258 14 0 if ($expiration or $set_expires)