(_ context.Context, req *FailWithHTTPErrorRequest)
| 49 | } |
| 50 | |
| 51 | func (f FakeServer) FailWithHTTPError(_ context.Context, req *FailWithHTTPErrorRequest) (*emptypb.Empty, error) { |
| 52 | return nil, httpgrpc.Errorf(int(req.Code), "%d", req.Code) |
| 53 | } |
| 54 | |
| 55 | func (f FakeServer) Succeed(_ context.Context, _ *emptypb.Empty) (*emptypb.Empty, error) { |
| 56 | return &emptypb.Empty{}, nil |