Mock is a mock instance of clock
| 35 | |
| 36 | // Mock is a mock instance of clock |
| 37 | type Mock struct { |
| 38 | mu sync.RWMutex |
| 39 | currentTime time.Time |
| 40 | } |
| 41 | |
| 42 | // SetNow sets the current time for the mock clock |
| 43 | func (c *Mock) SetNow(t time.Time) { |
nothing calls this directly
no outgoing calls
no test coverage detected