MCPcopy
hub / github.com/stretchr/testify / RoundTrip

Method RoundTrip

http/test_round_tripper.go:15–18  ·  view source on GitHub ↗

Deprecated: Use [net/http/httptest] instead.

(req *http.Request)

Source from the content-addressed store, hash-verified

13
14// Deprecated: Use [net/http/httptest] instead.
15func (t *TestRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
16 args := t.Called(req)
17 return args.Get(0).(*http.Response), args.Error(1)
18}

Callers

nothing calls this directly

Calls 3

CalledMethod · 0.80
GetMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected