Branch Coverage

blib/lib/Kelp.pm
Criterion Covered Total %
branch 42 52 80.7


line true false branch
64 49 2 if (defined(my $modules = $self->config("modules")))
80 1 4 if ref $class or not $class or not "Class::Inspector"->loaded($class) or not $class->isa(__PACKAGE__)
99 4 0 unless $@
102 0 4 if ($err)
103 0 0 length $err > 1 ? :
131 0 17 unless ref $self
141 1 202 $name =~ s/^\+// ? :
144 0 203 if $self->loaded_modules->{$name}
154 163 39 if ($self->can("config"))
212 1 260 if ($self->can("logger"))
230 5 3 if ($match->[-1]->bridge) { }
278 33 205 if ($route->bridge) { }
189 16 elsif (defined $data) { }
285 4 29 unless ($data)
286 2 2 unless $res->rendered
294 1 188 if ref $data eq "CODE"
295 148 40 unless $res->rendered
299 201 32 if $res->rendered
303 9 201 unless ($res->rendered)
330 8 243 unless (@$match)
352 10 25 if (builtin::blessed($exception) and $exception->isa('Kelp::Exception')) { }
355 0 10 if $self->can("logger") and defined $exception->body
361 0 25 $self->long_error ? :
364 0 25 if $self->can("logger")
402 1 1 @_ ? :
408 21 0 @_ ? :