Documentation ¶
Index ¶
- type Clock
- func (_m *Clock) After(d time.Duration) <-chan time.Time
- func (_m *Clock) EXPECT() *Clock_Expecter
- func (_m *Clock) NewTicker(d time.Duration) clock.Ticker
- func (_m *Clock) NewTimer(d time.Duration) clock.Timer
- func (_m *Clock) Now() time.Time
- func (_m *Clock) Since(t time.Time) time.Duration
- func (_m *Clock) Sleep(d time.Duration)
- type Clock_After_Call
- type Clock_Expecter
- func (_e *Clock_Expecter) After(d interface{}) *Clock_After_Call
- func (_e *Clock_Expecter) NewTicker(d interface{}) *Clock_NewTicker_Call
- func (_e *Clock_Expecter) NewTimer(d interface{}) *Clock_NewTimer_Call
- func (_e *Clock_Expecter) Now() *Clock_Now_Call
- func (_e *Clock_Expecter) Since(t interface{}) *Clock_Since_Call
- func (_e *Clock_Expecter) Sleep(d interface{}) *Clock_Sleep_Call
- type Clock_NewTicker_Call
- type Clock_NewTimer_Call
- type Clock_Now_Call
- type Clock_Since_Call
- type Clock_Sleep_Call
- type FakeClock
- func (_m *FakeClock) Advance(d time.Duration)
- func (_m *FakeClock) After(d time.Duration) <-chan time.Time
- func (_m *FakeClock) BlockUntil(n int)
- func (_m *FakeClock) BlockUntilTickers(n int)
- func (_m *FakeClock) BlockUntilTimers(n int)
- func (_m *FakeClock) EXPECT() *FakeClock_Expecter
- func (_m *FakeClock) NewTicker(d time.Duration) clock.Ticker
- func (_m *FakeClock) NewTimer(d time.Duration) clock.Timer
- func (_m *FakeClock) Now() time.Time
- func (_m *FakeClock) Since(t time.Time) time.Duration
- func (_m *FakeClock) Sleep(d time.Duration)
- type FakeClock_Advance_Call
- type FakeClock_After_Call
- type FakeClock_BlockUntilTickers_Call
- type FakeClock_BlockUntilTimers_Call
- type FakeClock_BlockUntil_Call
- type FakeClock_Expecter
- func (_e *FakeClock_Expecter) Advance(d interface{}) *FakeClock_Advance_Call
- func (_e *FakeClock_Expecter) After(d interface{}) *FakeClock_After_Call
- func (_e *FakeClock_Expecter) BlockUntil(n interface{}) *FakeClock_BlockUntil_Call
- func (_e *FakeClock_Expecter) BlockUntilTickers(n interface{}) *FakeClock_BlockUntilTickers_Call
- func (_e *FakeClock_Expecter) BlockUntilTimers(n interface{}) *FakeClock_BlockUntilTimers_Call
- func (_e *FakeClock_Expecter) NewTicker(d interface{}) *FakeClock_NewTicker_Call
- func (_e *FakeClock_Expecter) NewTimer(d interface{}) *FakeClock_NewTimer_Call
- func (_e *FakeClock_Expecter) Now() *FakeClock_Now_Call
- func (_e *FakeClock_Expecter) Since(t interface{}) *FakeClock_Since_Call
- func (_e *FakeClock_Expecter) Sleep(d interface{}) *FakeClock_Sleep_Call
- type FakeClock_NewTicker_Call
- type FakeClock_NewTimer_Call
- type FakeClock_Now_Call
- type FakeClock_Since_Call
- type FakeClock_Sleep_Call
- type Ticker
- type Ticker_Chan_Call
- type Ticker_Expecter
- type Ticker_Reset_Call
- type Ticker_Stop_Call
- type Timer
- type Timer_Chan_Call
- type Timer_Expecter
- type Timer_Reset_Call
- type Timer_Stop_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Clock ¶
Clock is an autogenerated mock type for the Clock type
func NewClock ¶
func NewClock(t mockConstructorTestingTNewClock) *Clock
NewClock creates a new instance of Clock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Clock) EXPECT ¶
func (_m *Clock) EXPECT() *Clock_Expecter
type Clock_After_Call ¶
Clock_After_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'After'
func (*Clock_After_Call) Return ¶
func (_c *Clock_After_Call) Return(_a0 <-chan time.Time) *Clock_After_Call
func (*Clock_After_Call) Run ¶
func (_c *Clock_After_Call) Run(run func(d time.Duration)) *Clock_After_Call
func (*Clock_After_Call) RunAndReturn ¶
func (_c *Clock_After_Call) RunAndReturn(run func(time.Duration) <-chan time.Time) *Clock_After_Call
type Clock_Expecter ¶
type Clock_Expecter struct {
// contains filtered or unexported fields
}
func (*Clock_Expecter) After ¶
func (_e *Clock_Expecter) After(d interface{}) *Clock_After_Call
After is a helper method to define mock.On call
- d time.Duration
func (*Clock_Expecter) NewTicker ¶
func (_e *Clock_Expecter) NewTicker(d interface{}) *Clock_NewTicker_Call
NewTicker is a helper method to define mock.On call
- d time.Duration
func (*Clock_Expecter) NewTimer ¶
func (_e *Clock_Expecter) NewTimer(d interface{}) *Clock_NewTimer_Call
NewTimer is a helper method to define mock.On call
- d time.Duration
func (*Clock_Expecter) Now ¶
func (_e *Clock_Expecter) Now() *Clock_Now_Call
Now is a helper method to define mock.On call
func (*Clock_Expecter) Since ¶
func (_e *Clock_Expecter) Since(t interface{}) *Clock_Since_Call
Since is a helper method to define mock.On call
- t time.Time
func (*Clock_Expecter) Sleep ¶
func (_e *Clock_Expecter) Sleep(d interface{}) *Clock_Sleep_Call
Sleep is a helper method to define mock.On call
- d time.Duration
type Clock_NewTicker_Call ¶
Clock_NewTicker_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewTicker'
func (*Clock_NewTicker_Call) Return ¶
func (_c *Clock_NewTicker_Call) Return(_a0 clock.Ticker) *Clock_NewTicker_Call
func (*Clock_NewTicker_Call) Run ¶
func (_c *Clock_NewTicker_Call) Run(run func(d time.Duration)) *Clock_NewTicker_Call
func (*Clock_NewTicker_Call) RunAndReturn ¶
func (_c *Clock_NewTicker_Call) RunAndReturn(run func(time.Duration) clock.Ticker) *Clock_NewTicker_Call
type Clock_NewTimer_Call ¶
Clock_NewTimer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewTimer'
func (*Clock_NewTimer_Call) Return ¶
func (_c *Clock_NewTimer_Call) Return(_a0 clock.Timer) *Clock_NewTimer_Call
func (*Clock_NewTimer_Call) Run ¶
func (_c *Clock_NewTimer_Call) Run(run func(d time.Duration)) *Clock_NewTimer_Call
func (*Clock_NewTimer_Call) RunAndReturn ¶
func (_c *Clock_NewTimer_Call) RunAndReturn(run func(time.Duration) clock.Timer) *Clock_NewTimer_Call
type Clock_Now_Call ¶
Clock_Now_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Now'
func (*Clock_Now_Call) Return ¶
func (_c *Clock_Now_Call) Return(_a0 time.Time) *Clock_Now_Call
func (*Clock_Now_Call) Run ¶
func (_c *Clock_Now_Call) Run(run func()) *Clock_Now_Call
func (*Clock_Now_Call) RunAndReturn ¶
func (_c *Clock_Now_Call) RunAndReturn(run func() time.Time) *Clock_Now_Call
type Clock_Since_Call ¶
Clock_Since_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Since'
func (*Clock_Since_Call) Return ¶
func (_c *Clock_Since_Call) Return(_a0 time.Duration) *Clock_Since_Call
func (*Clock_Since_Call) Run ¶
func (_c *Clock_Since_Call) Run(run func(t time.Time)) *Clock_Since_Call
func (*Clock_Since_Call) RunAndReturn ¶
func (_c *Clock_Since_Call) RunAndReturn(run func(time.Time) time.Duration) *Clock_Since_Call
type Clock_Sleep_Call ¶
Clock_Sleep_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sleep'
func (*Clock_Sleep_Call) Return ¶
func (_c *Clock_Sleep_Call) Return() *Clock_Sleep_Call
func (*Clock_Sleep_Call) Run ¶
func (_c *Clock_Sleep_Call) Run(run func(d time.Duration)) *Clock_Sleep_Call
func (*Clock_Sleep_Call) RunAndReturn ¶
func (_c *Clock_Sleep_Call) RunAndReturn(run func(time.Duration)) *Clock_Sleep_Call
type FakeClock ¶
FakeClock is an autogenerated mock type for the FakeClock type
func NewFakeClock ¶
func NewFakeClock(t mockConstructorTestingTNewFakeClock) *FakeClock
NewFakeClock creates a new instance of FakeClock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FakeClock) BlockUntil ¶
BlockUntil provides a mock function with given fields: n
func (*FakeClock) BlockUntilTickers ¶
BlockUntilTickers provides a mock function with given fields: n
func (*FakeClock) BlockUntilTimers ¶
BlockUntilTimers provides a mock function with given fields: n
func (*FakeClock) EXPECT ¶
func (_m *FakeClock) EXPECT() *FakeClock_Expecter
type FakeClock_Advance_Call ¶
FakeClock_Advance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Advance'
func (*FakeClock_Advance_Call) Return ¶
func (_c *FakeClock_Advance_Call) Return() *FakeClock_Advance_Call
func (*FakeClock_Advance_Call) Run ¶
func (_c *FakeClock_Advance_Call) Run(run func(d time.Duration)) *FakeClock_Advance_Call
func (*FakeClock_Advance_Call) RunAndReturn ¶
func (_c *FakeClock_Advance_Call) RunAndReturn(run func(time.Duration)) *FakeClock_Advance_Call
type FakeClock_After_Call ¶
FakeClock_After_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'After'
func (*FakeClock_After_Call) Return ¶
func (_c *FakeClock_After_Call) Return(_a0 <-chan time.Time) *FakeClock_After_Call
func (*FakeClock_After_Call) Run ¶
func (_c *FakeClock_After_Call) Run(run func(d time.Duration)) *FakeClock_After_Call
func (*FakeClock_After_Call) RunAndReturn ¶
func (_c *FakeClock_After_Call) RunAndReturn(run func(time.Duration) <-chan time.Time) *FakeClock_After_Call
type FakeClock_BlockUntilTickers_Call ¶
FakeClock_BlockUntilTickers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockUntilTickers'
func (*FakeClock_BlockUntilTickers_Call) Return ¶
func (_c *FakeClock_BlockUntilTickers_Call) Return() *FakeClock_BlockUntilTickers_Call
func (*FakeClock_BlockUntilTickers_Call) Run ¶
func (_c *FakeClock_BlockUntilTickers_Call) Run(run func(n int)) *FakeClock_BlockUntilTickers_Call
func (*FakeClock_BlockUntilTickers_Call) RunAndReturn ¶
func (_c *FakeClock_BlockUntilTickers_Call) RunAndReturn(run func(int)) *FakeClock_BlockUntilTickers_Call
type FakeClock_BlockUntilTimers_Call ¶
FakeClock_BlockUntilTimers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockUntilTimers'
func (*FakeClock_BlockUntilTimers_Call) Return ¶
func (_c *FakeClock_BlockUntilTimers_Call) Return() *FakeClock_BlockUntilTimers_Call
func (*FakeClock_BlockUntilTimers_Call) Run ¶
func (_c *FakeClock_BlockUntilTimers_Call) Run(run func(n int)) *FakeClock_BlockUntilTimers_Call
func (*FakeClock_BlockUntilTimers_Call) RunAndReturn ¶
func (_c *FakeClock_BlockUntilTimers_Call) RunAndReturn(run func(int)) *FakeClock_BlockUntilTimers_Call
type FakeClock_BlockUntil_Call ¶
FakeClock_BlockUntil_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockUntil'
func (*FakeClock_BlockUntil_Call) Return ¶
func (_c *FakeClock_BlockUntil_Call) Return() *FakeClock_BlockUntil_Call
func (*FakeClock_BlockUntil_Call) Run ¶
func (_c *FakeClock_BlockUntil_Call) Run(run func(n int)) *FakeClock_BlockUntil_Call
func (*FakeClock_BlockUntil_Call) RunAndReturn ¶
func (_c *FakeClock_BlockUntil_Call) RunAndReturn(run func(int)) *FakeClock_BlockUntil_Call
type FakeClock_Expecter ¶
type FakeClock_Expecter struct {
// contains filtered or unexported fields
}
func (*FakeClock_Expecter) Advance ¶
func (_e *FakeClock_Expecter) Advance(d interface{}) *FakeClock_Advance_Call
Advance is a helper method to define mock.On call
- d time.Duration
func (*FakeClock_Expecter) After ¶
func (_e *FakeClock_Expecter) After(d interface{}) *FakeClock_After_Call
After is a helper method to define mock.On call
- d time.Duration
func (*FakeClock_Expecter) BlockUntil ¶
func (_e *FakeClock_Expecter) BlockUntil(n interface{}) *FakeClock_BlockUntil_Call
BlockUntil is a helper method to define mock.On call
- n int
func (*FakeClock_Expecter) BlockUntilTickers ¶
func (_e *FakeClock_Expecter) BlockUntilTickers(n interface{}) *FakeClock_BlockUntilTickers_Call
BlockUntilTickers is a helper method to define mock.On call
- n int
func (*FakeClock_Expecter) BlockUntilTimers ¶
func (_e *FakeClock_Expecter) BlockUntilTimers(n interface{}) *FakeClock_BlockUntilTimers_Call
BlockUntilTimers is a helper method to define mock.On call
- n int
func (*FakeClock_Expecter) NewTicker ¶
func (_e *FakeClock_Expecter) NewTicker(d interface{}) *FakeClock_NewTicker_Call
NewTicker is a helper method to define mock.On call
- d time.Duration
func (*FakeClock_Expecter) NewTimer ¶
func (_e *FakeClock_Expecter) NewTimer(d interface{}) *FakeClock_NewTimer_Call
NewTimer is a helper method to define mock.On call
- d time.Duration
func (*FakeClock_Expecter) Now ¶
func (_e *FakeClock_Expecter) Now() *FakeClock_Now_Call
Now is a helper method to define mock.On call
func (*FakeClock_Expecter) Since ¶
func (_e *FakeClock_Expecter) Since(t interface{}) *FakeClock_Since_Call
Since is a helper method to define mock.On call
- t time.Time
func (*FakeClock_Expecter) Sleep ¶
func (_e *FakeClock_Expecter) Sleep(d interface{}) *FakeClock_Sleep_Call
Sleep is a helper method to define mock.On call
- d time.Duration
type FakeClock_NewTicker_Call ¶
FakeClock_NewTicker_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewTicker'
func (*FakeClock_NewTicker_Call) Return ¶
func (_c *FakeClock_NewTicker_Call) Return(_a0 clock.Ticker) *FakeClock_NewTicker_Call
func (*FakeClock_NewTicker_Call) Run ¶
func (_c *FakeClock_NewTicker_Call) Run(run func(d time.Duration)) *FakeClock_NewTicker_Call
func (*FakeClock_NewTicker_Call) RunAndReturn ¶
func (_c *FakeClock_NewTicker_Call) RunAndReturn(run func(time.Duration) clock.Ticker) *FakeClock_NewTicker_Call
type FakeClock_NewTimer_Call ¶
FakeClock_NewTimer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewTimer'
func (*FakeClock_NewTimer_Call) Return ¶
func (_c *FakeClock_NewTimer_Call) Return(_a0 clock.Timer) *FakeClock_NewTimer_Call
func (*FakeClock_NewTimer_Call) Run ¶
func (_c *FakeClock_NewTimer_Call) Run(run func(d time.Duration)) *FakeClock_NewTimer_Call
func (*FakeClock_NewTimer_Call) RunAndReturn ¶
func (_c *FakeClock_NewTimer_Call) RunAndReturn(run func(time.Duration) clock.Timer) *FakeClock_NewTimer_Call
type FakeClock_Now_Call ¶
FakeClock_Now_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Now'
func (*FakeClock_Now_Call) Return ¶
func (_c *FakeClock_Now_Call) Return(_a0 time.Time) *FakeClock_Now_Call
func (*FakeClock_Now_Call) Run ¶
func (_c *FakeClock_Now_Call) Run(run func()) *FakeClock_Now_Call
func (*FakeClock_Now_Call) RunAndReturn ¶
func (_c *FakeClock_Now_Call) RunAndReturn(run func() time.Time) *FakeClock_Now_Call
type FakeClock_Since_Call ¶
FakeClock_Since_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Since'
func (*FakeClock_Since_Call) Return ¶
func (_c *FakeClock_Since_Call) Return(_a0 time.Duration) *FakeClock_Since_Call
func (*FakeClock_Since_Call) Run ¶
func (_c *FakeClock_Since_Call) Run(run func(t time.Time)) *FakeClock_Since_Call
func (*FakeClock_Since_Call) RunAndReturn ¶
func (_c *FakeClock_Since_Call) RunAndReturn(run func(time.Time) time.Duration) *FakeClock_Since_Call
type FakeClock_Sleep_Call ¶
FakeClock_Sleep_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sleep'
func (*FakeClock_Sleep_Call) Return ¶
func (_c *FakeClock_Sleep_Call) Return() *FakeClock_Sleep_Call
func (*FakeClock_Sleep_Call) Run ¶
func (_c *FakeClock_Sleep_Call) Run(run func(d time.Duration)) *FakeClock_Sleep_Call
func (*FakeClock_Sleep_Call) RunAndReturn ¶
func (_c *FakeClock_Sleep_Call) RunAndReturn(run func(time.Duration)) *FakeClock_Sleep_Call
type Ticker ¶
Ticker is an autogenerated mock type for the Ticker type
func NewTicker ¶
func NewTicker(t mockConstructorTestingTNewTicker) *Ticker
NewTicker creates a new instance of Ticker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Ticker) EXPECT ¶
func (_m *Ticker) EXPECT() *Ticker_Expecter
type Ticker_Chan_Call ¶
Ticker_Chan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Chan'
func (*Ticker_Chan_Call) Return ¶
func (_c *Ticker_Chan_Call) Return(_a0 <-chan time.Time) *Ticker_Chan_Call
func (*Ticker_Chan_Call) Run ¶
func (_c *Ticker_Chan_Call) Run(run func()) *Ticker_Chan_Call
func (*Ticker_Chan_Call) RunAndReturn ¶
func (_c *Ticker_Chan_Call) RunAndReturn(run func() <-chan time.Time) *Ticker_Chan_Call
type Ticker_Expecter ¶
type Ticker_Expecter struct {
// contains filtered or unexported fields
}
func (*Ticker_Expecter) Chan ¶
func (_e *Ticker_Expecter) Chan() *Ticker_Chan_Call
Chan is a helper method to define mock.On call
func (*Ticker_Expecter) Reset ¶
func (_e *Ticker_Expecter) Reset(d interface{}) *Ticker_Reset_Call
Reset is a helper method to define mock.On call
- d time.Duration
func (*Ticker_Expecter) Stop ¶
func (_e *Ticker_Expecter) Stop() *Ticker_Stop_Call
Stop is a helper method to define mock.On call
type Ticker_Reset_Call ¶
Ticker_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'
func (*Ticker_Reset_Call) Return ¶
func (_c *Ticker_Reset_Call) Return() *Ticker_Reset_Call
func (*Ticker_Reset_Call) Run ¶
func (_c *Ticker_Reset_Call) Run(run func(d time.Duration)) *Ticker_Reset_Call
func (*Ticker_Reset_Call) RunAndReturn ¶
func (_c *Ticker_Reset_Call) RunAndReturn(run func(time.Duration)) *Ticker_Reset_Call
type Ticker_Stop_Call ¶
Ticker_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*Ticker_Stop_Call) Return ¶
func (_c *Ticker_Stop_Call) Return() *Ticker_Stop_Call
func (*Ticker_Stop_Call) Run ¶
func (_c *Ticker_Stop_Call) Run(run func()) *Ticker_Stop_Call
func (*Ticker_Stop_Call) RunAndReturn ¶
func (_c *Ticker_Stop_Call) RunAndReturn(run func()) *Ticker_Stop_Call
type Timer ¶
Timer is an autogenerated mock type for the Timer type
func NewTimer ¶
func NewTimer(t mockConstructorTestingTNewTimer) *Timer
NewTimer creates a new instance of Timer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Timer) EXPECT ¶
func (_m *Timer) EXPECT() *Timer_Expecter
type Timer_Chan_Call ¶
Timer_Chan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Chan'
func (*Timer_Chan_Call) Return ¶
func (_c *Timer_Chan_Call) Return(_a0 <-chan time.Time) *Timer_Chan_Call
func (*Timer_Chan_Call) Run ¶
func (_c *Timer_Chan_Call) Run(run func()) *Timer_Chan_Call
func (*Timer_Chan_Call) RunAndReturn ¶
func (_c *Timer_Chan_Call) RunAndReturn(run func() <-chan time.Time) *Timer_Chan_Call
type Timer_Expecter ¶
type Timer_Expecter struct {
// contains filtered or unexported fields
}
func (*Timer_Expecter) Chan ¶
func (_e *Timer_Expecter) Chan() *Timer_Chan_Call
Chan is a helper method to define mock.On call
func (*Timer_Expecter) Reset ¶
func (_e *Timer_Expecter) Reset(d interface{}) *Timer_Reset_Call
Reset is a helper method to define mock.On call
- d time.Duration
func (*Timer_Expecter) Stop ¶
func (_e *Timer_Expecter) Stop() *Timer_Stop_Call
Stop is a helper method to define mock.On call
type Timer_Reset_Call ¶
Timer_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'
func (*Timer_Reset_Call) Return ¶
func (_c *Timer_Reset_Call) Return() *Timer_Reset_Call
func (*Timer_Reset_Call) Run ¶
func (_c *Timer_Reset_Call) Run(run func(d time.Duration)) *Timer_Reset_Call
func (*Timer_Reset_Call) RunAndReturn ¶
func (_c *Timer_Reset_Call) RunAndReturn(run func(time.Duration)) *Timer_Reset_Call
type Timer_Stop_Call ¶
Timer_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*Timer_Stop_Call) Return ¶
func (_c *Timer_Stop_Call) Return(_a0 bool) *Timer_Stop_Call
func (*Timer_Stop_Call) Run ¶
func (_c *Timer_Stop_Call) Run(run func()) *Timer_Stop_Call
func (*Timer_Stop_Call) RunAndReturn ¶
func (_c *Timer_Stop_Call) RunAndReturn(run func() bool) *Timer_Stop_Call