fakeStream is a pair of in-memory channels simulating a bidirectional transport.
| 12 | |
| 13 | // fakeStream is a pair of in-memory channels simulating a bidirectional transport. |
| 14 | type fakeStream struct { |
| 15 | sendCh chan *v1sync.SyncStreamItem |
| 16 | recvCh chan *v1sync.SyncStreamItem |
| 17 | } |
| 18 | |
| 19 | func (f *fakeStream) Send(item *v1sync.SyncStreamItem) error { |
| 20 | f.sendCh <- item |
nothing calls this directly
no outgoing calls
no test coverage detected