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

Function newMockHTTPRespWriter

proxy/proxy_test.go:53–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53func newMockHTTPRespWriter() *mockHTTPRespWriter {
54 return &mockHTTPRespWriter{
55 httptest.NewRecorder(),
56 }
57}
58
59func (w *mockHTTPRespWriter) WriteResponse() error {
60 return nil

Callers 6

newMockWSRespWriterFunction · 0.85
newMockSSERespWriterFunction · 0.85
testProxyHTTPFunction · 0.85
runIngressTestScenariosFunction · 0.85
TestProxyErrorFunction · 0.85
TestConnectionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected