MCPcopy Index your code
hub / github.com/cortexproject/cortex / processServerMock

Struct processServerMock

pkg/frontend/v1/queue_test.go:132–139  ·  view source on GitHub ↗

This mock behaves as connected querier worker to frontend. It will remember each request that frontend sends, and reply with 200 HTTP status code.

Source from the content-addressed store, hash-verified

130// This mock behaves as connected querier worker to frontend. It will remember each request
131// that frontend sends, and reply with 200 HTTP status code.
132type processServerMock struct {
133 ctx context.Context
134 querierID string
135
136 response *frontendv1pb.ClientToFrontend
137
138 requests []*httpgrpc.HTTPRequest
139}
140
141func (p *processServerMock) Send(client *frontendv1pb.FrontendToClient) error {
142 switch {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected