Branch Coverage

blib/lib/Apache/ASP/StateManager.pm
Criterion Covered Total %
branch 73 158 46.2


line true false branch
42 0 7 if ($$self{'state_db'} = &config($self, 'StateDB'))
44 0 0 unless $Apache::ASP::State::DB{$$self{'state_db'}}
52 0 7 if ($$self{'state_serializer'} = &config($self, 'StateSerializer'))
59 0 7 unless tie %Internal, 'Apache::ASP::State', $self, 'internal', 'server'
62 0 7 if $$self{'state_serialize'}
66 7 0 if ($$self{'app_state'}) { }
70 0 7 unless $$self{'Application'} = &Apache::ASP::Application::new($self)
72 0 7 if $$self{'state_serialize'}
75 0 0 if $$self{'dbg'}
80 7 0 if ($$self{'session_state'}) { }
112 0 7 if $$self{'state_serialize'}
115 0 0 if $$self{'dbg'}
123 7 0 if ($session)
125 7 0 if ($session->Started)
127 7 0 if ($$self{'app_state'})
129 1 6 if (($last_session_timeout = $$internal{'LastSessionTimeout'} || 0) < time)
134 1 0 if ($self->CleanupGroups('PURGE'))
135 0 1 if $last_session_timeout
145 7 0 if ($$self{'app_state'})
150 2 5 if ($last_session_timeout < $$self{'session_timeout'} + time + rand() * $$self{'group_refresh'} / 2)
153 0 2 if $$self{'dbg'}
173 0 6 unless $$self{'Session'}
180 0 6 unless ($group_id)
186 0 6 unless $group_id
193 0 6 unless ($force or $group_check < time)
213 0 6 if $$asp{'dbg'}
217 0 6 if $$asp{'dbg'}
233 0 7 unless (ref $idata and ref $idata eq 'HASH')
239 0 7 unless ($timeout)
251 7 0 unless ($timeout < time)
252 0 7 if $$asp{'dbg'}
262 0 0 if $$asp{'dbg'}
277 0 0 if (my $count = $member_state->Delete) { }
278 0 0 if $$asp{'dbg'}
290 0 7 if ($@)
303 0 6 if ($deleted == @$ids)
304 0 0 if (not $state->GroupId =~ /^[0]/)
307 0 0 if (@{$ids;} == 0)
321 0 8 unless $$self{'Session'}
328 0 8 if $$self{'dbg'} and $force
335 6 2 if ($force or ($CleanupGroups{$state_dir} || 0) < time)
339 0 6 if $$self{'dbg'}
340 2 4 if ($self->CleanupMaster)
342 2 0 if ($force or $$internal{'CleanupGroups'} < time - $$self{'group_refresh'} / 8)
349 6 2 unless $cleanup
357 0 2 if $$self{'dbg'}
363 0 6 if ($start_cleanup > time)
371 0 0 unless $self->CleanupMaster
375 0 2 if $$self{'dbg'}
378 2 0 unless $sum_deleted
393 0 6 $$master{'ServerID'} eq $ServerID && $$master{'PID'} eq $$ ? :
394 0 6 if $$self{'dbg'}
395 0 6 $is_master ? :
399 2 4 if ($stale_time < time) { }
0 4 elsif ($is_master) { }
407 0 2 if $$self{'dbg'}
413 0 2 if (not $^O =~ /Win/ and $ENV{'MOD_PERL'} and $$self{'DESTROY'})
419 2 0 $$master{'ServerID'} eq $ServerID && $$master{'PID'} eq $$ ? :
420 0 2 if $$self{'dbg'}
426 0 0 if $$self{'dbg'}
430 0 4 if $$self{'dbg'}
439 7 7 if (defined $id) { }
440 7 0 unless ($$self{'session_url_force'})
442 1 6 $$self{'secure_session'} ? :
443 1 6 $$self{'cookie_domain'} ? :
451 0 7 if $$self{'session_id'}
455 7 0 unless ($$self{'session_url_force'})
461 0 0 if ($name eq $SessionCookieName)
464 0 0 if $$self{'dbg'}
471 0 7 if (not defined $id and $$self{'session_url'})
475 0 0 if ref($id) =~ /ARRAY/
476 0 0 if $id and $$self{'dbg'}
481 0 7 if (defined $id)
482 0 0 if ($id =~ /^[0-9a-z]{8,32}$/s) { }
491 0 7 if ($session_from_url and defined $id)
495 0 7 if (defined $id)
520 0 7 unless $id
525 7 0 $reset ? :
530 0 7 if $$self{'dbg'}