Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeSvc ¶
func NewTimeSvc ¶
func NewTimeSvc() TimeSvc
type TimeSvcMockImpl ¶
type TimeSvcMockImpl struct { Time time.Time StopSleepingRequest chan any DoneSleeping chan time.Duration }
func NewTimeSvcMock ¶
func NewTimeSvcMock() *TimeSvcMockImpl
func (*TimeSvcMockImpl) Add ¶
func (svc *TimeSvcMockImpl) Add(d time.Duration)
func (*TimeSvcMockImpl) GetSleptDuration ¶
func (svc *TimeSvcMockImpl) GetSleptDuration() time.Duration
func (*TimeSvcMockImpl) Now ¶
func (svc *TimeSvcMockImpl) Now() time.Time
func (*TimeSvcMockImpl) Sleep ¶
func (svc *TimeSvcMockImpl) Sleep(d time.Duration)
Click to show internal directories.
Click to hide internal directories.