Branch Coverage

blib/lib/Kelp.pm
Criterion Covered Total %
branch 40 52 76.9


line true false branch
57 40 0 if (defined(my $modules = $self->config('modules')))
70 1 4 if ref $class or not $class or not 'Class::Inspector'->loaded($class) or not $class->isa('Kelp')
87 4 0 unless $@
90 0 4 if ($err)
91 0 0 length $err > 1 ? :
114 0 5 unless ref $self
123 1 161 $name =~ s/^\+// ? :
126 0 162 if $self->loaded_modules->{$name}
136 128 33 if ($self->can('config'))
176 201 0 if (defined(my $middleware = $self->config('middleware')))
182 0 7 if $self->{'_loaded_middleware'}{$class}++ and not $ENV{'KELP_TESTING'}
204 7 194 unless (@$match)
220 1 165 if ($self->can('logger'))
230 10 156 if ($route->bridge)
231 4 6 unless ($data)
232 2 2 unless $res->rendered
239 154 2 if (defined $data)
242 1 153 if ref $data eq 'CODE'
243 112 41 unless $res->rendered
248 3 156 unless ($self->res->rendered)
250 1 2 if ($match->[-1]->bridge) { }
267 12 24 if (&blessed($exception) and $exception->isa('Kelp::Exception')) { }
275 0 24 $self->long_error ? :
278 0 24 if $self->can('logger')
309 1 1 @_ ? :
314 21 0 @_ ? :