Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SimulatedClock ¶
type SimulatedClock struct { Clock // contains filtered or unexported fields }
A clock that allows for manipulation of the time, which does not change unless AdvanceTime is called. The zero value is a clock initialized to the zero time.
func (*SimulatedClock) AdvanceTime ¶
func (sc *SimulatedClock) AdvanceTime(d time.Duration)
Advance the current time according to the clock by the supplied duration.
func (*SimulatedClock) Now ¶
func (sc *SimulatedClock) Now() time.Time
func (*SimulatedClock) SetTime ¶
func (sc *SimulatedClock) SetTime(t time.Time)
Set the current time according to the clock.
Click to show internal directories.
Click to hide internal directories.