mocks

package
v0.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock struct {
	mock.Mock
}

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) After

func (_m *Clock) After(d time.Duration) <-chan time.Time

After provides a mock function with given fields: d

func (*Clock) EXPECT

func (_m *Clock) EXPECT() *Clock_Expecter

func (*Clock) NewTicker

func (_m *Clock) NewTicker(d time.Duration) clock.Ticker

NewTicker provides a mock function with given fields: d

func (*Clock) NewTimer

func (_m *Clock) NewTimer(d time.Duration) clock.Timer

NewTimer provides a mock function with given fields: d

func (*Clock) Now

func (_m *Clock) Now() time.Time

Now provides a mock function with given fields:

func (*Clock) Since

func (_m *Clock) Since(t time.Time) time.Duration

Since provides a mock function with given fields: t

func (*Clock) Sleep

func (_m *Clock) Sleep(d time.Duration)

Sleep provides a mock function with given fields: d

type Clock_After_Call

type Clock_After_Call struct {
	*mock.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

type Clock_NewTicker_Call struct {
	*mock.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 (*Clock_NewTicker_Call) Run

func (*Clock_NewTicker_Call) RunAndReturn

func (_c *Clock_NewTicker_Call) RunAndReturn(run func(time.Duration) clock.Ticker) *Clock_NewTicker_Call

type Clock_NewTimer_Call

type Clock_NewTimer_Call struct {
	*mock.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 (*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

type Clock_Now_Call struct {
	*mock.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

type Clock_Since_Call struct {
	*mock.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 (*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

type Clock_Sleep_Call struct {
	*mock.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

type FakeClock struct {
	mock.Mock
}

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) Advance

func (_m *FakeClock) Advance(d time.Duration)

Advance provides a mock function with given fields: d

func (*FakeClock) After

func (_m *FakeClock) After(d time.Duration) <-chan time.Time

After provides a mock function with given fields: d

func (*FakeClock) BlockUntil

func (_m *FakeClock) BlockUntil(n int)

BlockUntil provides a mock function with given fields: n

func (*FakeClock) BlockUntilTickers

func (_m *FakeClock) BlockUntilTickers(n int)

BlockUntilTickers provides a mock function with given fields: n

func (*FakeClock) BlockUntilTimers

func (_m *FakeClock) BlockUntilTimers(n int)

BlockUntilTimers provides a mock function with given fields: n

func (*FakeClock) EXPECT

func (_m *FakeClock) EXPECT() *FakeClock_Expecter

func (*FakeClock) NewTicker

func (_m *FakeClock) NewTicker(d time.Duration) clock.Ticker

NewTicker provides a mock function with given fields: d

func (*FakeClock) NewTimer

func (_m *FakeClock) NewTimer(d time.Duration) clock.Timer

NewTimer provides a mock function with given fields: d

func (*FakeClock) Now

func (_m *FakeClock) Now() time.Time

Now provides a mock function with given fields:

func (*FakeClock) Since

func (_m *FakeClock) Since(t time.Time) time.Duration

Since provides a mock function with given fields: t

func (*FakeClock) Sleep

func (_m *FakeClock) Sleep(d time.Duration)

Sleep provides a mock function with given fields: d

type FakeClock_Advance_Call

type FakeClock_Advance_Call struct {
	*mock.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 (*FakeClock_Advance_Call) Run

func (*FakeClock_Advance_Call) RunAndReturn

func (_c *FakeClock_Advance_Call) RunAndReturn(run func(time.Duration)) *FakeClock_Advance_Call

type FakeClock_After_Call

type FakeClock_After_Call struct {
	*mock.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 (*FakeClock_After_Call) RunAndReturn

func (_c *FakeClock_After_Call) RunAndReturn(run func(time.Duration) <-chan time.Time) *FakeClock_After_Call

type FakeClock_BlockUntilTickers_Call

type FakeClock_BlockUntilTickers_Call struct {
	*mock.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 (*FakeClock_BlockUntilTickers_Call) Run

func (*FakeClock_BlockUntilTickers_Call) RunAndReturn

type FakeClock_BlockUntilTimers_Call

type FakeClock_BlockUntilTimers_Call struct {
	*mock.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 (*FakeClock_BlockUntilTimers_Call) Run

func (*FakeClock_BlockUntilTimers_Call) RunAndReturn

type FakeClock_BlockUntil_Call

type FakeClock_BlockUntil_Call struct {
	*mock.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 (*FakeClock_BlockUntil_Call) Run

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

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

type FakeClock_NewTicker_Call struct {
	*mock.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 (*FakeClock_NewTicker_Call) Run

func (*FakeClock_NewTicker_Call) RunAndReturn

type FakeClock_NewTimer_Call

type FakeClock_NewTimer_Call struct {
	*mock.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 (*FakeClock_NewTimer_Call) Run

func (*FakeClock_NewTimer_Call) RunAndReturn

type FakeClock_Now_Call

type FakeClock_Now_Call struct {
	*mock.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 (*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

type FakeClock_Since_Call struct {
	*mock.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 (*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

type FakeClock_Sleep_Call struct {
	*mock.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 (*FakeClock_Sleep_Call) Run

func (*FakeClock_Sleep_Call) RunAndReturn

func (_c *FakeClock_Sleep_Call) RunAndReturn(run func(time.Duration)) *FakeClock_Sleep_Call

type Ticker

type Ticker struct {
	mock.Mock
}

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) Chan

func (_m *Ticker) Chan() <-chan time.Time

Chan provides a mock function with given fields:

func (*Ticker) EXPECT

func (_m *Ticker) EXPECT() *Ticker_Expecter

func (*Ticker) Reset

func (_m *Ticker) Reset(d time.Duration)

Reset provides a mock function with given fields: d

func (*Ticker) Stop

func (_m *Ticker) Stop()

Stop provides a mock function with given fields:

type Ticker_Chan_Call

type Ticker_Chan_Call struct {
	*mock.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

type Ticker_Reset_Call struct {
	*mock.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

type Ticker_Stop_Call struct {
	*mock.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

type Timer struct {
	mock.Mock
}

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) Chan

func (_m *Timer) Chan() <-chan time.Time

Chan provides a mock function with given fields:

func (*Timer) EXPECT

func (_m *Timer) EXPECT() *Timer_Expecter

func (*Timer) Reset

func (_m *Timer) Reset(d time.Duration)

Reset provides a mock function with given fields: d

func (*Timer) Stop

func (_m *Timer) Stop() bool

Stop provides a mock function with given fields:

type Timer_Chan_Call

type Timer_Chan_Call struct {
	*mock.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

type Timer_Reset_Call struct {
	*mock.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

type Timer_Stop_Call struct {
	*mock.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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL