Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Clock clock.Clock
View Source
var MockedClock *clock.Mock
Functions ¶
func MockClock ¶
func MockClock()
MockClock sets the MockedClock field to a mock and sets the Clock field to the mock instance
func NowRoundedForGranularity ¶
NowRoundedForGranularity returns a time.Time rounded to microsecond resolution postgres only supports microsecond resolution, so round when inserting (otherwise tests that read/write to db may fail due to rounding)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.