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

Function newMockSSERespWriter

proxy/proxy_test.go:125–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123}
124
125func newMockSSERespWriter() *mockSSERespWriter {
126 return &mockSSERespWriter{
127 newMockHTTPRespWriter(),
128 make(chan []byte),
129 }
130}
131
132func (w *mockSSERespWriter) Write(data []byte) (int, error) {
133 newData := make([]byte, len(data))

Callers 2

testProxySSEFunction · 0.85
TestProxySSEAllDataFunction · 0.85

Calls 1

newMockHTTPRespWriterFunction · 0.85

Tested by

no test coverage detected