| 41 | } |
| 42 | |
| 43 | type mockStream struct { |
| 44 | responses []chat.MessageStreamResponse |
| 45 | i int |
| 46 | |
| 47 | errAt int |
| 48 | err error |
| 49 | } |
| 50 | |
| 51 | func (s *mockStream) Recv() (chat.MessageStreamResponse, error) { |
| 52 | if s.errAt >= 0 && s.i == s.errAt { |
nothing calls this directly
no outgoing calls
no test coverage detected