MCPcopy Index your code
hub / github.com/OverloadBlitz/cloudcent-cli / response

Function response

internal/api/client_test.go:37–43  ·  view source on GitHub ↗
(status int, body string)

Source from the content-addressed store, hash-verified

35}
36
37func response(status int, body string) *http.Response {
38 return &http.Response{
39 StatusCode: status,
40 Header: make(http.Header),
41 Body: io.NopCloser(strings.NewReader(body)),
42 }
43}
44
45func TestPostIncludesJSONAndAuthHeaders(t *testing.T) {
46 client := newTestClient(t, true, func(req *http.Request) (*http.Response, error) {

Calls

no outgoing calls

Tested by

no test coverage detected