MCPcopy Create free account
hub / github.com/SamNet-dev/snix / newFakeBackend

Function newFakeBackend

core/engine/engine_test.go:25–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func newFakeBackend() *fakeBackend {
26 return &fakeBackend{ch: make(chan platform.Packet, 16)}
27}
28
29func (b *fakeBackend) Open(context.Context, platform.Scope) error { return nil }
30func (b *fakeBackend) Packets() <-chan platform.Packet { return b.ch }

Calls

no outgoing calls

Tested by

no test coverage detected