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

Method CreateStream

tools/remotecommand/v2_test.go:49–53  ·  view source on GitHub ↗
(headers http.Header)

Source from the content-addressed store, hash-verified

47var _ streamCreator = &fakeStreamCreator{}
48
49func (f *fakeStreamCreator) CreateStream(headers http.Header) (httpstream.Stream, error) {
50 streamType := headers.Get(v1.StreamType)
51 f.created[streamType] = true
52 return nil, f.errors[streamType]
53}
54
55func TestV2CreateStreams(t *testing.T) {
56 tests := []struct {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected