Branch Coverage

blib/lib/PAGI/Middleware/Session.pm
Criterion Covered Total %
branch 20 22 90.9


line true false branch
252 2 9 if ($config->{'state'}) { }
268 2 9 if ($config->{'store'}) { }
281 0 18 if ($scope->{'type'} ne "http")
287 1 17 if (exists $scope->{'pagi.session'})
289 0 1 if $ENV{'PAGI_DEBUG'}
311 17 17 if ($event->{'type'} eq "http.response.start")
314 1 16 if ($session->{'_destroyed'}) { }
1 15 elsif ($session->{'_regenerated'}) { }
332 12 3 if ($is_new)
353 7 10 if (defined $session_id and length $session_id)
355 5 2 if ($session and not $self->_is_expired($session))