Condition Coverage

blib/lib/Catalyst/Plugin/Session.pm
Criterion Covered Total %
condition 23 62 37.1


and 3 conditions

line !l l&&!r l&&r condition
65 2 1 2 $c->isa('Catalyst::Plugin::Session::State') and $c->isa('Catalyst::Plugin::Session::Store')
98 0 0 1 $c->_session_plugin_config->{'flash_to_stash'} and $c->sessionid
0 0 1 $c->_session_plugin_config->{'flash_to_stash'} and $c->sessionid and my $flash_data = $c->flash
208 0 0 2 not exists $keep->{$key} and Object::Signature::signature(\$flash_data->{$key}) eq $hashes->{$key}
259 6 0 0 $c->_session_plugin_config->{'verify_address'} and exists $session_data->{'__address'}
0 0 0 $c->_session_plugin_config->{'verify_address'} and exists $session_data->{'__address'} and $session_data->{'__address'} ne $c->request->address
271 6 0 0 $c->_session_plugin_config->{'verify_user_agent'} and $session_data->{'__user_agent'} ne $c->request->user_agent

or 2 conditions

line l !l condition
48 14 1 $c->config->{'session'} || {}
205 3 3 $c->_flash_key_hashes || {}
206 1 5 $c->_flash_keep_keys || {}
255 6 0 $c->get_session_data("session:$sid") || (return)
320 0 6 +($data || $c->_session || {})->{'__expire_keys'} || {}
392 0 0 $c->_session_plugin_config->{'expiry_threshold'} || 0
422 0 0 $expires ||= 0
432 6 0 $c->get_session_data("expires:$sid") || 0
595 0 0 $c->request->address || ''
0 0 $c->request->user_agent || ''

or 3 conditions

line l !l&&r !l&&!r condition
48 0 15 0 $c->config->{'Plugin::Session'} ||= $c->config->{'session'} || {}
398 0 0 0 not $threshold or $cutoff <= time
0 0 0 not $threshold or $cutoff <= time or $c->_session_updated
470 41 0 0 $c->_sessionid || $c->_load_sessionid
514 10 0 0 $c->_session || $c->_load_session || do { $c->create_session_id_if_needed; $c->initialize_session_data }
533 0 0 0 $c->_flash_keep_keys || $c->_flash_keep_keys({})
539 7 3 3 $c->_flash or $c->_load_flash