Branch Coverage

blib/lib/OpenAI/API/Request.pm
Criterion Covered Total %
branch 6 26 23.0


line true false branch
52 0 0 unless eval "require $response_module"
70 0 4 if (@_ == 1)
76 0 0 $self->method eq 'GET' ? :
4 0 $self->method eq 'POST' ? :
81 0 0 if ($args{'http_response'})
105 0 0 $self->method eq 'GET' ? :
0 0 $self->method eq 'POST' ? :
110 0 0 if ($args{'http_response'})
177 4 0 unless ($res->is_success)
195 0 0 unless ($res->is_success)
219 0 4 if ($res->is_success) { }
0 4 elsif ($res->code =~ /^(?:500|503|504|599)$/ and $attempt < $self->config->retry) { }
239 0 4 unless (eval {