fakeStream produces a fixed sequence of chunks then EOF.
| 67 | |
| 68 | // fakeStream produces a fixed sequence of chunks then EOF. |
| 69 | type fakeStream struct { |
| 70 | chunks []chat.MessageStreamResponse |
| 71 | idx int |
| 72 | closed bool |
| 73 | } |
| 74 | |
| 75 | func (f *fakeStream) Recv() (chat.MessageStreamResponse, error) { |
| 76 | if f.idx >= len(f.chunks) { |
nothing calls this directly
no outgoing calls
no test coverage detected