MCPcopy Create free account
hub / github.com/garethgeorge/backrest / fakeStream

Struct fakeStream

internal/api/syncapi/encryption_test.go:14–17  ·  view source on GitHub ↗

fakeStream is a pair of in-memory channels simulating a bidirectional transport.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected