discard forgets the requests and response positions recorded so far, such as anything gh did while printing its version.
()
| 112 | // discard forgets the requests and response positions recorded so far, such as |
| 113 | // anything gh did while printing its version. |
| 114 | func (m *mockServer) discard() { |
| 115 | m.mu.Lock() |
| 116 | defer m.mu.Unlock() |
| 117 | m.requests = nil |
| 118 | m.cursors = map[string]int{} |
| 119 | } |
| 120 | |
| 121 | func (m *mockServer) record(e loggedRequest) { |
| 122 | m.mu.Lock() |