Branch Coverage

lib/CGI/Mungo/Session.pm
Criterion Covered Total %
branch 13 52 25.0


line true false branch
50 0 0 if ($self->getVar('remoteIp')) { }
51 0 0 if ($self->getVar('remoteIp') eq $ENV{'REMOTE_ADDR'}) { }
52 0 0 if ($self->getVar('scriptPath') and $self->getVar('scriptPath') eq $ENV{'SCRIPT_NAME'}) { }
87 0 0 if (defined $$self{'vars'}{$name}) { }
148 2 0 unless ($self->getError)
150 2 0 if ($response) { }
165 0 2 if (defined $sessionId)
167 0 0 if ($sessionId =~ /^(${prefix}[a-f0-9]+)$/) { }
170 0 0 if (open SSIDE, '<', $sessionFile) { }
176 0 0 if ($contents =~ /^(\$VAR1 = \{.+\};)$/m) { }
216 0 0 if ($sessionId =~ /^${prefix}[a-f0-9]+$/) { }
219 0 0 if (unlink $sessionFile) { }
222 0 0 if ($response) { }
246 0 2 if (exists $ENV{'HTTPS'})
256 2 0 if ($cookie) { }
268 0 0 if (opendir COOKIES, $path)
273 0 0 if ($_ =~ /^(${prefix}[a-f0-9]+)$/)
276 0 0 if (defined $stat[9] and $stat[9] < $expire)
290 4 0 if ($self->getId =~ /^(${prefix}[a-f0-9]+)$/) { }
293 4 0 if (open SSIDE, '>', $sessionFile) { }
298 4 0 if ($dump)
306 0 4 if ($self->getError) { }
314 0 2 if (exists $ENV{'HTTP_COOKIE'})
318 0 0 if ($n eq $name)
326 2 2 if (not defined $value) { }
327 2 0 if ($$self{'vars'})