Reset clears all recorded requests.
()
| 126 | |
| 127 | // Reset clears all recorded requests. |
| 128 | func (m *MockAPI) Reset() { |
| 129 | m.mu.Lock() |
| 130 | defer m.mu.Unlock() |
| 131 | m.Requests = nil |
| 132 | } |
| 133 | |
| 134 | // Close shuts down the mock server. |
| 135 | func (m *MockAPI) Close() { |
no outgoing calls