Branch Coverage

blib/lib/OpenAI/API/Request.pm
Criterion Covered Total %
branch 7 28 25.0


line true false branch
48 0 4 unless eval "require $class"
69 0 0 unless eval "require $response_module"
88 0 4 if (@_ == 1)
94 0 0 $self->method eq 'GET' ? :
4 0 $self->method eq 'POST' ? :
99 0 0 if ($args{'http_response'})
123 0 0 $self->method eq 'GET' ? :
0 0 $self->method eq 'POST' ? :
128 0 0 if ($args{'http_response'})
189 4 0 unless ($res->is_success)
207 0 0 unless ($res->is_success)
231 0 4 if ($res->is_success) { }
0 4 elsif ($res->code =~ /^(?:500|503|504|599)$/ and $attempt < $self->config->retry) { }
252 0 4 unless (eval {