MCPcopy
hub / github.com/cloudflare/cloudflared / newMockWSRespWriter

Function newMockWSRespWriter

proxy/proxy_test.go:89–95  ·  view source on GitHub ↗
(reader io.Reader)

Source from the content-addressed store, hash-verified

87}
88
89func newMockWSRespWriter(reader io.Reader) *mockWSRespWriter {
90 return &mockWSRespWriter{
91 newMockHTTPRespWriter(),
92 make(chan []byte),
93 reader,
94 }
95}
96
97func (w *mockWSRespWriter) Write(data []byte) (int, error) {
98 w.writeNotification <- data

Callers 1

testProxyWebsocketFunction · 0.85

Calls 1

newMockHTTPRespWriterFunction · 0.85

Tested by

no test coverage detected