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