MCPcopy
hub / github.com/coder/websocket / mockHTTPClient

Function mockHTTPClient

dial_test.go:299–303  ·  view source on GitHub ↗
(fn roundTripperFunc)

Source from the content-addressed store, hash-verified

297}
298
299func mockHTTPClient(fn roundTripperFunc) *http.Client {
300 return &http.Client{
301 Transport: fn,
302 }
303}
304
305type roundTripperFunc func(*http.Request) (*http.Response, error)
306

Callers 3

TestBadDialsFunction · 0.85
Test_verifyHostOverrideFunction · 0.85
TestDialRedirectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…