Branch Coverage

blib/lib/Plack/Middleware/Session.pm
Criterion Covered Total %
branch 17 22 77.2


line true false branch
22 3 72 unless $self->state
30 145 5 if defined $backend and builtin::blessed($backend)
33 3 2 if defined $backend
44 42 40 if ($id and $session) { }
60 26 50 unless my $id = $self->state->extract($env)
61 8 42 unless my $session = $self->store->fetch($id)
78 0 68 if $options->{'no_store'}
82 68 0 if (not $options->{'late_store'}) { }
0 0 elsif ($env->{'psgix.cleanup'}) { }
98 8 74 if ($options->{'expire'}) { }
101 0 74 if $options->{'change_id'}