(method string, fn func(reqID string, body []byte) (ok bool, respBody []byte, errStr string))
| 119 | } |
| 120 | |
| 121 | func (m *nodeMock) handle(method string, fn func(reqID string, body []byte) (ok bool, respBody []byte, errStr string)) { |
| 122 | m.mu.Lock() |
| 123 | defer m.mu.Unlock() |
| 124 | m.handlers[method] = fn |
| 125 | } |
| 126 | |
| 127 | func (m *nodeMock) recvLoop() { |
| 128 | defer close(m.done) |
no outgoing calls
no test coverage detected