Branch Coverage

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


line true false branch
22 4 72 unless $self->state
30 145 7 if defined $backend and &Scalar::Util::blessed($backend)
33 4 3 if defined $backend
44 42 36 if ($id and $session) { }
60 28 50 unless my $id = $self->state->extract($env)
61 8 42 unless my $session = $self->store->fetch($id)
78 0 70 if $$options{'no_store'}
82 70 0 if (not $$options{'late_store'}) { }
0 0 elsif ($$env{'psgix.cleanup'}) { }
98 8 70 if ($$options{'expire'}) { }
101 0 70 if $$options{'change_id'}