SetClockImplementation sets implementation to use passed in nowFunc
(f NowFunc)
| 45 | |
| 46 | // SetClockImplementation sets implementation to use passed in nowFunc |
| 47 | func SetClockImplementation(f NowFunc) { |
| 48 | nowFunc = f |
| 49 | } |
| 50 | |
| 51 | // SetCurrentTime sets the clock implementation to the specified time, |
| 52 | func SetCurrentTime(t time.Time) { |
no outgoing calls
no test coverage detected