scriptedForwardClient is a fake ForwardClient that returns a fixed sequence of replies. Each Recv pops the next reply or returns the terminal error. Used to drive forwardReader through scripted gRPC responses without standing up a real backend.
| 17 | // terminal error. Used to drive forwardReader through scripted gRPC |
| 18 | // responses without standing up a real backend. |
| 19 | type scriptedForwardClient struct { |
| 20 | replies []*pb.ForwardReply |
| 21 | final error |
| 22 | idx int |
| 23 | } |
| 24 | |
| 25 | func (s *scriptedForwardClient) Send(*pb.ForwardRequest) error { return nil } |
| 26 | func (s *scriptedForwardClient) CloseSend() error { return nil } |
nothing calls this directly
no outgoing calls
no test coverage detected