| 17 | ) |
| 18 | |
| 19 | type mockClient struct { |
| 20 | happy bool |
| 21 | status grpc_health_v1.HealthCheckResponse_ServingStatus |
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected