Branch Coverage

lib/PSGI/Hector/Session.pm
Criterion Covered Total %
branch 11 50 22.0


line true false branch
51 0 0 if ($self->getVar('remoteIp')) { }
53 0 0 if ($self->getVar('remoteIp') eq $env->{'REMOTE_ADDR'}) { }
54 0 0 if ($self->getVar('scriptPath') and $self->getVar('scriptPath') eq $env->{'SCRIPT_NAME'}) { }
89 0 0 if (defined $self->{'vars'}{$name}) { }
142 2 0 unless ($self->getError)
155 0 2 if (defined $sessionId)
157 0 0 if ($sessionId =~ /^(${prefix}[a-f0-9]+)$/) { }
160 0 0 if (open SSIDE, '<', $sessionFile) { }
166 0 0 if ($contents =~ /^(\$VAR1 = \{.+\};)$/m) { }
204 0 0 if ($response) { }
207 0 0 if ($sessionId =~ /^${prefix}[a-f0-9]+$/) { }
210 0 0 if (unlink $sessionFile) { }
249 0 2 if (exists $env->{'HTTPS'})
259 2 0 if ($cookie) { }
271 1 0 if (opendir COOKIES, $path)
276 0 4 if ($_ =~ /^(${prefix}[a-f0-9]+)$/)
279 0 0 if (defined $stat[9] and $stat[9] < $expire)
293 0 0 if ($self->getId =~ /^(${prefix}[a-f0-9]+)$/) { }
296 0 0 if (open SSIDE, '>', $sessionFile) { }
301 0 0 if ($dump)
309 0 0 if ($self->getError) { }
315 2 2 if (not defined $value) { }
316 2 0 if ($self->{'vars'})
338 0 2 if ($self->read and $self->validate) { }
2 0 elsif ($self->create) { }