Branch Coverage

lib/PSGI/Hector.pm
Criterion Covered Total %
branch 19 40 47.5


line true false branch
90 0 8 unless $options->{'responsePlugin'}
96 0 8 if ($self->getOption('requestClass'))
99 2 6 unless (defined $self->getOption('debug'))
142 1 0 unless ($self->{'_session'})
144 0 1 if ($self->getOption('sessionClass'))
166 0 7 unless $request
205 0 1 if (defined $params->{'action'}) { }
210 0 1 if ($sefAction)
232 2 0 if ($query)
278 0 0 if ($response->code != 304)
284 0 0 if ($class->can($subName)) { }
288 0 0 if ($@)
316 24 19 if (defined $self->{'_options'}{$key})
331 0 13 unless $class->__checkClass($class, $name)
337 13 16 if is_class_loaded($try)
341 16 0 if ($@)
361 0 1 if (defined $env->{'PATH_INFO'} and $env->{'PATH_INFO'} =~ m[/(.+)$])
369 8 0 if (not defined $self->getOption('checkReferer') or $self->getOption('checkReferer'))
380 8 0 if ($host and $env->{'HTTP_REFERER'} and $env->{'HTTP_REFERER'} =~ m[^(http|https)://$host]) { }
404 0 0 unless $scriptName