MCPcopy
hub / github.com/grafana/tempo / mockRoundTripper

Struct mockRoundTripper

modules/frontend/search_handlers_test.go:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41var _ pipeline.RoundTripper = &mockRoundTripper{}
42
43type mockRoundTripper struct {
44 err error
45 statusCode int
46 statusMessage string
47 once sync.Once
48
49 responseFn func() proto.Message
50}
51
52func (s *mockRoundTripper) RoundTrip(_ pipeline.Request) (*http.Response, error) {
53 // only return errors once, then do a good response to make sure that the combiner is handling the error correctly

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected