Branch Coverage

blib/lib/Whelk/Wrapper.pm
Criterion Covered Total %
branch 30 38 78.9


line true false branch
20 11 67 if ($params->path_schema)
29 17 59 if ($params->query_schema)
43 16 55 if ($params->header_schema)
47 51 16 @values == 1 ? :
58 11 55 if ($params->cookie_schema)
67 20 43 if ($endpoint->request)
84 1 82 if ($schema and $schema->empty) { }
85 0 1 if ($self->_get_code_class($code) ne "2XX")
86 0 0 if $code == 500
98 0 83 unless ($schema)
101 0 0 if $code == 500
110 83 0 if ($app->whelk->inhale_response)
112 7 76 if (defined $inhaled)
118 1 6 if $inhale_error
155 48 30 if ($success) { }
156 45 3 unless $res->code
159 29 1 if (builtin::blessed($data) and $data->isa('Kelp::Exception')) { }
164 1 28 unless $data->isa("Whelk::Exception")
212 10 0 if $app->can("logger")