SetNow sets the current time for the mock clock
(t time.Time)
| 41 | |
| 42 | // SetNow sets the current time for the mock clock |
| 43 | func (c *Mock) SetNow(t time.Time) { |
| 44 | c.mu.Lock() |
| 45 | defer c.mu.Unlock() |
| 46 | c.currentTime = t |
| 47 | } |
| 48 | |
| 49 | // Now returns the current time |
| 50 | func (c *Mock) Now() time.Time { |
no outgoing calls