MCPcopy
hub / github.com/apache/devlake / SetExpectedStatusCode

Method SetExpectedStatusCode

backend/test/helper/client.go:201–204  ·  view source on GitHub ↗

SetExpectedStatusCode override the expected status code of the next API call. If it's anything but this, the test will fail.

(code int)

Source from the content-addressed store, hash-verified

199
200// SetExpectedStatusCode override the expected status code of the next API call. If it's anything but this, the test will fail.
201func (d *DevlakeClient) SetExpectedStatusCode(code int) *DevlakeClient {
202 d.expectedStatusCode = code
203 return d
204}
205
206// SetExpectedStatusCode return the last http status code
207func (d *DevlakeClient) LastReturnedStatusCode() int {

Calls

no outgoing calls

Tested by 7

TestTestmoPluginFunction · 0.64
TestPagerDutyPluginFunction · 0.64
TestAzureFunction · 0.64
TestGitlabPluginFunction · 0.64