Implementation defines the methods we delegate
| 6 | |
| 7 | // Implementation defines the methods we delegate |
| 8 | type Implementation interface { |
| 9 | Now() time.Time |
| 10 | Since(t time.Time) time.Duration |
| 11 | Until(t time.Time) time.Duration |
| 12 | |
| 13 | Sleep(d time.Duration) |
| 14 | |
| 15 | After(d time.Duration) <-chan time.Time |
| 16 | AfterFunc(d time.Duration, f func()) Timer |
| 17 | |
| 18 | NewTicker(d time.Duration) Ticker |
| 19 | NewTimer(d time.Duration) Timer |
| 20 | } |
| 21 | |
| 22 | //go:generate mockery -case underscore -outpkg timexmock -output timexmock -name Implementation |
| 23 | var _ Implementation = Default{} |
no outgoing calls
no test coverage detected