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

Function newTCPRespWriter

proxy/proxy_test.go:892–896  ·  view source on GitHub ↗
(w io.Writer)

Source from the content-addressed store, hash-verified

890}
891
892func newTCPRespWriter(w io.Writer) *mockTCPRespWriter {
893 return &mockTCPRespWriter{
894 w: w,
895 }
896}
897
898func (m *mockTCPRespWriter) Read(p []byte) (n int, err error) {
899 return len(p), nil

Callers 1

TestConnectionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected