MCPcopy Index your code
hub / github.com/coder/coder / Reset

Method Reset

coderd/coderdtest/authorize.go:327–331  ·  view source on GitHub ↗

Reset clears the recorded Authorize() calls.

()

Source from the content-addressed store, hash-verified

325
326// Reset clears the recorded Authorize() calls.
327func (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

Callers 1

SubtestWithDBMethod · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 1

SubtestWithDBMethod · 0.76