Clock is an interface to the standard library time. It is used to implement a real or a mock clock. The latter is used in tests.
| 24 | // Clock is an interface to the standard library time. |
| 25 | // It is used to implement a real or a mock clock. The latter is used in tests. |
| 26 | type Clock interface { |
| 27 | Now() time.Time |
| 28 | } |
| 29 | |
| 30 | type clock struct{} |
| 31 |
no outgoing calls
no test coverage detected