outChanStatus snapshots (bound, closed) under outChanMu.RLock so AddMock's fork decision sees a consistent pair.
()
| 500 | // outChanStatus snapshots (bound, closed) under outChanMu.RLock so |
| 501 | // AddMock's fork decision sees a consistent pair. |
| 502 | func (m *SyncMockManager) outChanStatus() (bound, closed bool) { |
| 503 | m.outChanMu.RLock() |
| 504 | defer m.outChanMu.RUnlock() |
| 505 | return m.outChan != nil && !m.outChanClosed, m.outChanClosed |
| 506 | } |
| 507 | |
| 508 | // SendConfigMock forwards a config mock directly to the outgoing |
| 509 | // channel, bypassing the firstReqSeen buffering that AddMock does. |
no outgoing calls
no test coverage detected