From bc346a69c43961e1478ed3acfd80c24d566394bf Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 1 Jan 2024 20:23:56 -0500 Subject: Add migration tests --- internal/util/clock.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 internal/util/clock.go (limited to 'internal/util/clock.go') diff --git a/internal/util/clock.go b/internal/util/clock.go new file mode 100644 index 0000000..d9a1afa --- /dev/null +++ b/internal/util/clock.go @@ -0,0 +1,13 @@ +package util + +import "time" + +type Clock interface { + Now() time.Time +} + +type RealClock struct{} + +func (RealClock) Now() time.Time { + return time.Now() +} -- cgit v1.2.3