Branch Coverage

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


line true false branch
65 3 2 unless ($c->isa('Catalyst::Plugin::Session::State') and $c->isa('Catalyst::Plugin::Session::Store'))
98 1 0 if ($c->_session_plugin_config->{'flash_to_stash'} and $c->sessionid and my $flash_data = $c->flash)
116 0 0 if $c->_needs_early_session_finalization
127 6 0 unless $c->_needs_early_session_finalization
147 11 1 if (my $session_data = $c->_session) { }
150 7 4 if (Object::Signature::signature($session_data) ne $c->_session_data_sig) { }
175 0 0 if (defined $c->_session_expires)
177 0 0 if (my $sid = $c->sessionid)
181 0 0 if ($extended > $current)
192 7 5 if (my $session_data = $c->_session_updated)
203 6 0 if (my $flash_data = $c->_flash)
208 2 0 if (not exists $keep->{$key} and Object::Signature::signature(\$flash_data->{$key}) eq $hashes->{$key})
216 4 2 if (%$flash_data) { }
229 0 6 if $c->_tried_loading_session_expires
232 6 0 if (my $sid = $c->sessionid)
235 6 0 if ($expires >= time) { }
249 0 6 if $c->_tried_loading_session_data
252 6 0 if (my $sid = $c->sessionid)
253 6 0 if ($c->_load_session_expires)
259 0 0 if ($c->_session_plugin_config->{'verify_address'} and exists $session_data->{'__address'} and $session_data->{'__address'} ne $c->request->address)
271 0 6 if ($c->_session_plugin_config->{'verify_user_agent'} and $session_data->{'__user_agent'} ne $c->request->user_agent)
283 0 6 if $c->debug
284 6 0 if $session_data
296 0 6 if $c->_tried_loading_flash_data
299 6 0 if (my $sid = $c->sessionid)
304 3 3 if (my $flash_data = $c->_flash)
340 0 0 if ($oldsid)
341 0 0 if $c->debug
345 0 0 if $c->debug
354 0 0 defined $msg ? :
0 0 if $c->debug
357 0 0 if (my $sid = $c->sessionid)
380 0 0 if (defined(my $expires = $c->_extended_session_expires)) { }
0 0 elsif (defined($expires = $c->_load_session_expires)) { }
394 0 0 if (my $sid = $c->sessionid) { }
398 0 0 if (not $threshold or $cutoff <= time or $c->_session_updated) { }
431 6 0 if (my $sid = $c->sessionid) { }
475 0 0 if $c->_tried_loading_session_id
478 0 0 if (defined(my $sid = $c->get_session_id))
479 0 0 if ($c->validate_session_id($sid)) { }
498 0 0 if ($c->_load_session) { }
508 0 0 if $sid
519 0 10 if (@_)
520 0 0 @_ > 1 ? :
521 0 0 unless ref $new_values
539 3 10 unless ($c->_flash or $c->_load_flash)
547 1 12 if (@_)
548 1 0 @_ > 1 ? :
549 0 1 unless ref $items
595 0 0 $c->_session_plugin_config->{'verify_address'} ? :
0 0 $c->_session_plugin_config->{'verify_user_agent'} ? :
612 0 3 unless $c->sessionid
620 0 0 if $c->debug
640 0 0 unless ($usable)
642 0 0 if (eval { do { 'Digest'->new($alg) } })
648 0 0 unless $usable
660 0 0 $c->_sessionid ? :