fakeGRPCBackend implements grpc.Backend with stub methods. Only the methods we test (Predict, PredictStream) have real behavior; the rest panic if called unexpectedly.
| 49 | // Only the methods we test (Predict, PredictStream) have real behavior; |
| 50 | // the rest panic if called unexpectedly. |
| 51 | type fakeGRPCBackend struct { |
| 52 | predictReply *pb.Reply |
| 53 | predictErr error |
| 54 | streamReplies []*pb.Reply |
| 55 | streamErr error |
| 56 | } |
| 57 | |
| 58 | func (f *fakeGRPCBackend) IsBusy() bool { return false } |
| 59 | func (f *fakeGRPCBackend) HealthCheck(_ context.Context) (bool, error) { return true, nil } |
nothing calls this directly
no outgoing calls
no test coverage detected