MCPcopy
hub / github.com/grafana/dskit / Check

Method Check

ring/client/pool_test.go:27–32  ·  view source on GitHub ↗
(_ context.Context, _ *grpc_health_v1.HealthCheckRequest, _ ...grpc.CallOption)

Source from the content-addressed store, hash-verified

25}
26
27func (i mockClient) Check(_ context.Context, _ *grpc_health_v1.HealthCheckRequest, _ ...grpc.CallOption) (*grpc_health_v1.HealthCheckResponse, error) {
28 if !i.happy {
29 return nil, fmt.Errorf("Fail")
30 }
31 return &grpc_health_v1.HealthCheckResponse{Status: i.status}, nil
32}
33
34func (i mockClient) List(_ context.Context, _ *grpc_health_v1.HealthListRequest, _ ...grpc.CallOption) (*grpc_health_v1.HealthListResponse, error) {
35 if !i.happy {

Callers 4

healthCheckFunction · 0.45
TestGrpcStatsFunction · 0.45
TestOTelTracingFunction · 0.45
TestHTTPGRPCTracingFunction · 0.45

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected