X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/ce0eacc2fe5090810cf22e022af3ab83006068a4..80e348724041a694002fc38f57e8868b9b9a2be9:/clock_helper_test.go?ds=sidebyside diff --git a/clock_helper_test.go b/clock_helper_test.go index 32dfbb9..0a14fd8 100644 --- a/clock_helper_test.go +++ b/clock_helper_test.go @@ -7,12 +7,12 @@ type TestClock struct { now time.Time } -func (c *TestClock) Now() time.Time { - return c.now -} - func newTestClock() *TestClock { return &TestClock{ now: time.Date(2026, 1, 1, 12, 0, 0, 0, time.UTC), } } + +func (c *TestClock) Now() time.Time { + return c.now +}