Condition Coverage

blib/lib/Apache/ASP/StateManager.pm
Criterion Covered Total %
condition 48 80 60.0


and 3 conditions

line !l l&&!r l&&r condition
233 0 0 57 ref $idata and ref $idata eq 'HASH'
328 33 1 0 $$self{'dbg'} and $force
375 0 0 0 $$self{'dbg'} and $self->Debug('cleanup groups', {'deleted', $sum_deleted})
393 13 0 4 $$master{'ServerID'} eq $Apache::ASP::ServerID && $$master{'PID'} eq $$
413 0 4 0 not $^O =~ /Win/ and $ENV{'MOD_PERL'}
4 0 0 not $^O =~ /Win/ and $ENV{'MOD_PERL'} and $$self{'DESTROY'}
419 0 0 4 $$master{'ServerID'} eq $Apache::ASP::ServerID && $$master{'PID'} eq $$
471 0 12 16 not defined $id and $$self{'session_url'}
476 14 2 0 $id and $$self{'dbg'}
491 12 14 2 $session_from_url and defined $id

or 2 conditions

line l !l condition
99 0 28 $$self{'headers_in'}->get('User-Agent') || 'UNKNOWN UA'
129 27 1 $$internal{'LastSessionTimeout'} || 0
176 66 8 $force ||= 0
192 65 9 $$internal{$group_key} || 0
208 74 0 $state->GroupMembers || []
237 57 0 $$idata{'timeout'} || 0
326 6 28 $force ||= 0
335 17 11 $Apache::ASP::CleanupGroups{$state_dir} || 0
386 15 2 $$internal{'CleanupMaster'} || {'ServerID', '', 'PID', 0, 'Checked', 0}
457 0 28 $$self{'r'}->headers_in->{'Cookie'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
90 0 1 27 $$self{'session_url_parse_match'} || &config($self, 'SessionQueryParse')
91 0 0 28 $$self{'session_url_parse_match'} || &config($self, 'SessionQueryMatch')
92 1 15 12 $$self{'session_url_parse'} || $$self{'session_url_match'} || &config($self, 'SessionQuery')
110 28 0 0 &Apache::ASP::Session::new($self) || $self->Die(q[can't create session])
149 27 1 0 $last_session_timeout ||= $$internal{'LastSessionTimeout'}
193 66 8 0 $force or $group_check < time
207 0 74 0 $state ||= &Apache::ASP::State::new($asp, $group_id)
335 6 11 17 $force or ($Apache::ASP::CleanupGroups{$state_dir} || 0) < time
342 6 2 0 $force or $$internal{'CleanupGroups'} < time - $$self{'group_refresh'} / 8
525 0 0 0 $$idata{'refresh_timeout'} || $$self{'session_timeout'}