Documentation
¶
Index ¶
- func Mocked(f func(*Implementation))
- type Implementation
- func (_m *Implementation) After(d time.Duration) <-chan time.Time
- func (_m *Implementation) AfterFunc(d time.Duration, f func()) timex.Timer
- func (_m *Implementation) NewTicker(d time.Duration) timex.Ticker
- func (_m *Implementation) NewTimer(d time.Duration) timex.Timer
- func (_m *Implementation) Now() time.Time
- func (_m *Implementation) Since(t time.Time) time.Duration
- func (_m *Implementation) Sleep(d time.Duration)
- func (_m *Implementation) Until(t time.Time) time.Duration
- type Ticker
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mocked ¶
func Mocked(f func(*Implementation))
Mocked runs the provided function with timex mocked, and then restores the default implementation
Types ¶
type Implementation ¶
Implementation is an autogenerated mock type for the Implementation type
func (*Implementation) After ¶
func (_m *Implementation) After(d time.Duration) <-chan time.Time
After provides a mock function with given fields: d
func (*Implementation) AfterFunc ¶
func (_m *Implementation) AfterFunc(d time.Duration, f func()) timex.Timer
AfterFunc provides a mock function with given fields: d, f
func (*Implementation) NewTicker ¶
func (_m *Implementation) NewTicker(d time.Duration) timex.Ticker
NewTicker provides a mock function with given fields: d
func (*Implementation) NewTimer ¶
func (_m *Implementation) NewTimer(d time.Duration) timex.Timer
NewTimer provides a mock function with given fields: d
func (*Implementation) Now ¶
func (_m *Implementation) Now() time.Time
Now provides a mock function with given fields:
func (*Implementation) Since ¶
func (_m *Implementation) Since(t time.Time) time.Duration
Since provides a mock function with given fields: t
func (*Implementation) Sleep ¶
func (_m *Implementation) Sleep(d time.Duration)
Sleep provides a mock function with given fields: d
type Ticker ¶
Ticker is an autogenerated mock type for the Ticker type
Click to show internal directories.
Click to hide internal directories.