Branch Coverage

blib/lib/Ado/Sessions.pm
Criterion Covered Total %
branch 17 24 70.8


line true false branch
31 1 15 if ($type eq 'mojo') { }
2 13 elsif ($type eq 'file') { }
13 0 elsif ($type eq 'database') { }
52 62 66 if not my $expires = delete $session->{'expires'} and $expiration
53 0 66 if defined $expires and $expires <= time
56 0 66 unless $stash->{'mojo.active_session'} = keys %$session
58 2 64 if $session->{'new_flash'}
68 33 83 unless my $session = $stash->{'mojo.session'}
69 0 0 unless keys %$session or $stash->{'mojo.active_session'}
74 0 83 if $stash->{'mojo.static'}
75 81 2 unless keys %{$$session{'new_flash'};}
80 83 0 if $expiration or $default