MCPcopy Index your code
hub / github.com/ContentSquare/chproxy / makeHeavyRequest

Function makeHeavyRequest

proxy_test.go:1142–1146  ·  view source on GitHub ↗
(p *reverseProxy, duration time.Duration)

Source from the content-addressed store, hash-verified

1140func makeRequest(p *reverseProxy) *http.Response { return makeHeavyRequest(p, time.Duration(0)) }
1141
1142func makeHeavyRequest(p *reverseProxy, duration time.Duration) *http.Response {
1143 body := bytes.NewBufferString(duration.String())
1144 req := httptest.NewRequest("POST", fakeServer.URL, body)
1145 return makeCustomRequest(p, req)
1146}
1147
1148type testCloseNotifier struct {
1149 http.ResponseWriter

Callers 4

TestKillQueryFunction · 0.85
makeRequestFunction · 0.85

Calls 2

makeCustomRequestFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected