MCPcopy Create free account
hub / github.com/cli/cli / errorResponse

Function errorResponse

pkg/cmd/event/client/client_test.go:47–49  ·  view source on GitHub ↗
(status int, message string)

Source from the content-addressed store, hash-verified

45}
46
47func errorResponse(status int, message string) httpmock.Responder {
48 return httpmock.StatusJSONResponse(status, map[string]string{"message": message})
49}
50
51func TestCreateSubscription(t *testing.T) {
52 for _, status := range []int{http.StatusCreated, http.StatusOK} {

Callers 1

TestClientErrorsFunction · 0.85

Calls 1

StatusJSONResponseFunction · 0.92

Tested by

no test coverage detected