MCPcopy Index your code
hub / github.com/helm/helm / newResponseJSON

Function newResponseJSON

pkg/kube/client_test.go:119–124  ·  view source on GitHub ↗
(code int, json []byte)

Source from the content-addressed store, hash-verified

117}
118
119func newResponseJSON(code int, json []byte) (*http.Response, error) {
120 header := http.Header{}
121 header.Set("Content-Type", runtime.ContentTypeJSON)
122 body := io.NopCloser(bytes.NewReader(json))
123 return &http.Response{StatusCode: code, Header: header, Body: body}, nil
124}
125
126func newTestClient(t *testing.T) *Client {
127 t.Helper()

Callers 2

TestCreateFunction · 0.85
TestUpdateFunction · 0.85

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…