MCPcopy Create free account
hub / github.com/cortexproject/cortex / mockClient

Struct mockClient

pkg/ring/client/pool_test.go:19–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17)
18
19type mockClient struct {
20 happy bool
21 status grpc_health_v1.HealthCheckResponse_ServingStatus
22}
23
24func (i mockClient) Check(ctx context.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption) (*grpc_health_v1.HealthCheckResponse, error) {
25 if !i.happy {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected