This mock behaves as connected querier worker to frontend. It will remember each request that frontend sends, and reply with 200 HTTP status code.
| 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. |
| 132 | type processServerMock struct { |
| 133 | ctx context.Context |
| 134 | querierID string |
| 135 | |
| 136 | response *frontendv1pb.ClientToFrontend |
| 137 | |
| 138 | requests []*httpgrpc.HTTPRequest |
| 139 | } |
| 140 | |
| 141 | func (p *processServerMock) Send(client *frontendv1pb.FrontendToClient) error { |
| 142 | switch { |
nothing calls this directly
no outgoing calls
no test coverage detected