MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / mockSender

Struct mockSender

internal/nodeagent/usage_test.go:51–56  ·  view source on GitHub ↗

mockSender 记录 push 与提供 ack 控制。

Source from the content-addressed store, hash-verified

49
50// mockSender 记录 push 与提供 ack 控制。
51type mockSender struct {
52 mu sync.Mutex
53 pushed []uint64
54 ackCh map[uint64]chan struct{}
55 failNext atomic.Bool
56}
57
58func newMockSender() *mockSender {
59 return &mockSender{ackCh: make(map[uint64]chan struct{})}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected