MCPcopy
hub / github.com/kubernetes/client-go / defaultHeaders

Function defaultHeaders

scale/client_test.go:49–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func defaultHeaders() http.Header {
50 header := http.Header{}
51 header.Set("Content-Type", runtime.ContentTypeJSON)
52 return header
53}
54
55func fakeScaleClient(t *testing.T) (ScalesGetter, []schema.GroupResource) {
56 fakeDiscoveryClient := &fakedisco.FakeDiscovery{Fake: &coretesting.Fake{}}

Callers 1

fakeScaleClientFunction · 0.85

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected