Branch Coverage

blib/lib/Mojolicious/Sessions.pm
Criterion Covered Total %
branch 20 26 76.9


line true false branch
18 0 211 $self->encrypted ? :
19 170 41 unless my $value = $c->$method($self->cookie_name)
21 0 41 unless my $session = $self->deserialize->(&b64_decode($value))
25 0 41 if not my $expires = delete $session->{'expires'} and $expiration
26 0 41 if defined $expires and $expires <= time
29 5 36 unless $stash->{'mojo.active_session'} = keys %$session
31 4 32 if $session->{'new_flash'}
39 891 119 unless my $session = $stash->{'mojo.session'}
40 68 2 unless keys %$session or $stash->{'mojo.active_session'}
44 0 51 if $stash->{'mojo.static'}
45 45 6 unless keys %{$$session{"new_flash"};}
50 49 2 if $expiration or $default
62 0 51 $self->encrypted ? :