MCPcopy Create free account
hub / github.com/coder/agentapi / BlockWrite

Method BlockWrite

x/acpio/acp_conversation_test.go:172–178  ·  view source on GitHub ↗

BlockWrite sets up blocking for the next Write call and returns: - started: a channel that is closed when Write begins - done: a channel to close to unblock the Write

()

Source from the content-addressed store, hash-verified

170// - started: a channel that is closed when Write begins
171// - done: a channel to close to unblock the Write
172func (m *mockAgentIO) BlockWrite() (started chan struct{}, done chan struct{}) {
173 m.mu.Lock()
174 defer m.mu.Unlock()
175 m.writeStarted = make(chan struct{})
176 m.writeBlock = make(chan struct{})
177 return m.writeStarted, m.writeBlock
178}
179
180func Test_NewACPConversation(t *testing.T) {
181 mClock := quartz.NewMock(t)

Calls

no outgoing calls

Tested by

no test coverage detected