Branch Coverage

blib/lib/Kelp/Response.pm
Criterion Covered Total %
branch 28 32 87.5


line true false branch
45 1 199 if $self->partial
74 127 65 unless $self->code
81 31 161 if ($is_json or $guess_json) { }
82 0 31 unless $self->app->can('json')
83 4 27 unless ref $body
86 0 24 unless $json->get_utf8
87 22 2 if $guess_json
90 154 7 if $guess_html
103 2 0 unless $self->code
105 1 1 unless ($self->content_type)
147 8 4 if (defined $body) { }
2 2 elsif ($self->content_type) { }
151 4 4 if ($is_html or $guess_html) { }
171 12 25 if (not defined $error or $self->app->mode eq 'deployment')
176 2 23 if &Scalar::Util::blessed($error)
208 0 36 unless $self->app->can('template')