Branch Coverage

blib/lib/Catalyst/Plugin/Session.pm
Criterion Covered Total %
branch 36 114 31.5


line true false branch
63 3 2 unless ($c->isa("Catalyst::Plugin::Session::State") and $c->isa("Catalyst::Plugin::Session::Store"))
96 1 0 if ($c->_session_plugin_config->{'flash_to_stash'} and $c->sessionid and my $flash_data = $c->flash)
114 0 0 if $c->_needs_early_session_finalization
125 6 0 unless $c->_needs_early_session_finalization
145 11 1 if (my $session_data = $c->_session) { }
148 7 4 if (Object::Signature::signature($session_data) ne $c->_session_data_sig) { }
173 0 0 if (defined $c->_session_expires)
175 0 0 if (my $sid = $c->sessionid)
179 0 0 if ($extended > $current)
190 7 5 if (my $session_data = $c->_session_updated)
201 6 0 if (my $flash_data = $c->_flash)
206 2 0 if (not exists $keep->{$key} and Object::Signature::signature(\$flash_data->{$key}) eq $hashes->{$key})
214 4 2 if (%$flash_data) { }
227 0 6 if $c->_tried_loading_session_expires
230 6 0 if (my $sid = $c->sessionid)
233 6 0 if ($expires >= time) { }
247 0 6 if $c->_tried_loading_session_data
250 6 0 if (my $sid = $c->sessionid)
251 6 0 if ($c->_load_session_expires)
257 0 0 if ($c->_session_plugin_config->{'verify_address'} and exists $session_data->{'__address'} and $session_data->{'__address'} ne $c->request->address)
269 0 6 if ($c->_session_plugin_config->{'verify_user_agent'} and $session_data->{'__user_agent'} ne $c->request->user_agent)
281 0 6 if $c->debug
282 6 0 if $session_data
294 0 6 if $c->_tried_loading_flash_data
297 6 0 if (my $sid = $c->sessionid)
302 3 3 if (my $flash_data = $c->_flash)
338 0 0 if ($oldsid)
339 0 0 if $c->debug
343 0 0 if $c->debug
352 0 0 defined $msg ? :
0 0 if $c->debug
355 0 0 if (my $sid = $c->sessionid)
378 0 0 if (defined(my $expires = $c->_extended_session_expires)) { }
0 0 elsif (defined($expires = $c->_load_session_expires)) { }
392 0 0 if (my $sid = $c->sessionid) { }
396 0 0 if (not $threshold or $cutoff <= time or $c->_session_updated) { }
429 6 0 if (my $sid = $c->sessionid) { }
473 0 0 if $c->_tried_loading_session_id
476 0 0 if (defined(my $sid = $c->get_session_id))
477 0 0 if ($c->validate_session_id($sid)) { }
496 0 0 if ($c->_load_session) { }
506 0 0 if $sid
517 0 10 if (@_)
518 0 0 @_ > 1 ? :
519 0 0 unless ref $new_values
537 3 10 unless ($c->_flash or $c->_load_flash)
545 1 12 if (@_)
546 1 0 @_ > 1 ? :
547 0 1 unless ref $items
593 0 0 $c->_session_plugin_config->{'verify_address'} ? :
0 0 $c->_session_plugin_config->{'verify_user_agent'} ? :
610 0 3 unless $c->sessionid
618 0 0 if $c->debug
638 0 0 unless ($usable)
640 0 0 if (eval {
646 0 0 unless $usable
658 0 0 $c->_sessionid ? :