Branch Coverage

blib/lib/Catalyst/Plugin/Session.pm
Criterion Covered Total %
branch 17 84 20.2


line true false branch
52 3 2 unless ($c->isa('Catalyst::Plugin::Session::State') and $c->isa('Catalyst::Plugin::Session::Store'))
81 1 0 if ($c->config->{'session'}{'flash_to_stash'} and $c->sessionid and my $flash_data = $c->flash)
122 0 6 if (defined $c->_session_expires)
133 0 6 if (my $session_data = $c->_session)
136 0 0 if (Object::Signature::signature($session_data) ne $c->_session_data_sig)
149 6 0 if (my $flash_data = $c->_flash)
154 2 0 if (not exists $$keep{$key} and Object::Signature::signature(\$$flash_data{$key}) eq $$hashes{$key})
161 4 2 if (%$flash_data) { }
172 0 0 if $c->_tried_loading_session_expires
175 0 0 if (my $sid = $c->sessionid)
178 0 0 if ($expires >= time) { }
192 0 0 if $c->_tried_loading_session_data
195 0 0 if (my $sid = $c->sessionid)
196 0 0 if ($c->_load_session_expires)
202 0 0 if ($c->config->{'session'}{'verify_address'} and $$session_data{'__address'} ne $c->request->address)
214 0 0 if $c->debug
215 0 0 if $session_data
227 0 6 if $c->_tried_loading_flash_data
230 6 0 if (my $sid = $c->sessionid)
231 6 0 if (my $flash_data = $c->_flash || $c->_flash($c->get_session_data("flash:$sid")))
264 0 0 defined $msg ? :
0 0 if $c->debug
267 0 0 if (my $sid = $c->sessionid)
290 0 0 if (defined(my $expires = $c->_extended_session_expires)) { }
0 0 elsif (defined($expires = $c->_load_session_expires)) { }
333 0 0 if $c->_tried_loading_session_id
336 0 0 if (defined(my $sid = $c->get_session_id))
337 0 0 if ($c->validate_session_id($sid)) { }
355 0 0 if ($c->_load_session) { }
365 0 0 if $sid
371 0 0 unless ($c->_session or $c->_load_session)
385 0 11 unless ($c->_flash or $c->_load_flash)
393 1 10 if (@_)
394 1 0 @_ > 1 ? :
395 0 1 unless ref $items
429 0 0 $c->config->{'session'}{'verify_address'} ? :
453 0 0 unless $c->sessionid
461 0 0 if $c->debug
481 0 0 unless ($usable)
483 0 0 if (eval {
489 0 0 unless $usable
501 0 0 $c->sessionid ? :