Branch Coverage

blib/lib/Kelp/Test.pm
Criterion Covered Total %
branch 8 14 57.1


line true false branch
32 0 201 unless ref $req eq 'HTTP::Request'
38 201 0 unless $req->uri->scheme
43 200 1 if ($req->uri->opaque =~ qr"^/{1}")
74 0 131 if ($code != 500 and $self->res->code == 500)
190 0 18 unless $self->app->can('json')
206 0 17 unless &like(scalar $self->res->header('content-type'), qr/json/, 'Content-Type is JSON')
209 0 17 unless cmp_deeply($json, $expected, $test_name)