Reset clears the recorded Authorize() calls.
()
| 325 | |
| 326 | // Reset clears the recorded Authorize() calls. |
| 327 | func (r *RecordingAuthorizer) Reset() { |
| 328 | r.Lock() |
| 329 | defer r.Unlock() |
| 330 | r.Called = nil |
| 331 | } |
| 332 | |
| 333 | // PreparedRecorder is the prepared version of the RecordingAuthorizer. |
| 334 | // It records the Authorize() calls to the original recorder. If the caller |