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
()
| 170 | // - started: a channel that is closed when Write begins |
| 171 | // - done: a channel to close to unblock the Write |
| 172 | func (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 | |
| 180 | func Test_NewACPConversation(t *testing.T) { |
| 181 | mClock := quartz.NewMock(t) |
no outgoing calls
no test coverage detected