Clock provides an interface to the current time, useful for testing
| 19 | |
| 20 | // Clock provides an interface to the current time, useful for testing |
| 21 | type Clock interface { |
| 22 | // Now returns the current time |
| 23 | Now() time.Time |
| 24 | } |
| 25 | |
| 26 | // New returns an implementation of Clock that uses the system time |
| 27 | func New() Clock { |
no outgoing calls
no test coverage detected