Branch Coverage

lib/PSGI/Hector.pm
Criterion Covered Total %
branch 16 36 44.4


line true false branch
90 5 0 if ($options->{'responsePlugin'}) { }
95 0 5 if ($self->getOption('requestClass'))
98 2 3 unless (defined $self->getOption('debug'))
147 1 0 unless ($self->{'_session'})
149 0 1 if ($self->getOption('sessionClass'))
172 0 7 unless ($request)
214 0 1 if (defined $params->{'action'}) { }
219 0 1 if ($sefAction)
241 2 0 if ($query)
287 0 0 if ($response->code != 304)
293 0 0 if ($class->can($subName)) { }
297 0 0 if ($@)
325 15 13 if (defined $self->{'_options'}{$key})
344 6 0 if (is_class_loaded($class . '::' . $name))
361 0 1 if (defined $env->{'PATH_INFO'} and $env->{'PATH_INFO'} =~ m[/(.+)$])
369 5 0 if (not defined $self->getOption('checkReferer') or $self->getOption('checkReferer'))
380 5 0 if ($host and $env->{'HTTP_REFERER'} and $env->{'HTTP_REFERER'} =~ m[^(http|https)://$host]) { }
405 0 0 if ($scriptName) { }