Method
Check
(ctx context.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption)
Source from the content-addressed store, hash-verified
| 22 | } |
| 23 | |
| 24 | func (i mockClient) Check(ctx context.Context, in *grpc_health_v1.HealthCheckRequest, opts ...grpc.CallOption) (*grpc_health_v1.HealthCheckResponse, error) { |
| 25 | if !i.happy { |
| 26 | return nil, fmt.Errorf("Fail") |
| 27 | } |
| 28 | return &grpc_health_v1.HealthCheckResponse{Status: i.status}, nil |
| 29 | } |
| 30 | |
| 31 | func (i mockClient) Close() error { |
| 32 | return nil |
Tested by
no test coverage detected