mocks

package
v0.0.0-...-790af29 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RateLimitingInterface

type RateLimitingInterface struct {
	mock.Mock
}

RateLimitingInterface is an autogenerated mock type for the RateLimitingInterface type

func NewRateLimitingInterface

func NewRateLimitingInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *RateLimitingInterface

NewRateLimitingInterface creates a new instance of RateLimitingInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*RateLimitingInterface) Add

func (_m *RateLimitingInterface) Add(item interface{})

Add provides a mock function with given fields: item

func (*RateLimitingInterface) AddAfter

func (_m *RateLimitingInterface) AddAfter(item interface{}, duration time.Duration)

AddAfter provides a mock function with given fields: item, duration

func (*RateLimitingInterface) AddRateLimited

func (_m *RateLimitingInterface) AddRateLimited(item interface{})

AddRateLimited provides a mock function with given fields: item

func (*RateLimitingInterface) Done

func (_m *RateLimitingInterface) Done(item interface{})

Done provides a mock function with given fields: item

func (*RateLimitingInterface) EXPECT

func (*RateLimitingInterface) Forget

func (_m *RateLimitingInterface) Forget(item interface{})

Forget provides a mock function with given fields: item

func (*RateLimitingInterface) Get

func (_m *RateLimitingInterface) Get() (interface{}, bool)

Get provides a mock function with given fields:

func (*RateLimitingInterface) Len

func (_m *RateLimitingInterface) Len() int

Len provides a mock function with given fields:

func (*RateLimitingInterface) NumRequeues

func (_m *RateLimitingInterface) NumRequeues(item interface{}) int

NumRequeues provides a mock function with given fields: item

func (*RateLimitingInterface) ShutDown

func (_m *RateLimitingInterface) ShutDown()

ShutDown provides a mock function with given fields:

func (*RateLimitingInterface) ShutDownWithDrain

func (_m *RateLimitingInterface) ShutDownWithDrain()

ShutDownWithDrain provides a mock function with given fields:

func (*RateLimitingInterface) ShuttingDown

func (_m *RateLimitingInterface) ShuttingDown() bool

ShuttingDown provides a mock function with given fields:

type RateLimitingInterface_AddAfter_Call

type RateLimitingInterface_AddAfter_Call struct {
	*mock.Call
}

RateLimitingInterface_AddAfter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddAfter'

func (*RateLimitingInterface_AddAfter_Call) Return

func (*RateLimitingInterface_AddAfter_Call) Run

func (_c *RateLimitingInterface_AddAfter_Call) Run(run func(item interface{}, duration time.Duration)) *RateLimitingInterface_AddAfter_Call

func (*RateLimitingInterface_AddAfter_Call) RunAndReturn

type RateLimitingInterface_AddRateLimited_Call

type RateLimitingInterface_AddRateLimited_Call struct {
	*mock.Call
}

RateLimitingInterface_AddRateLimited_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddRateLimited'

func (*RateLimitingInterface_AddRateLimited_Call) Return

func (*RateLimitingInterface_AddRateLimited_Call) Run

func (*RateLimitingInterface_AddRateLimited_Call) RunAndReturn

type RateLimitingInterface_Add_Call

type RateLimitingInterface_Add_Call struct {
	*mock.Call
}

RateLimitingInterface_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*RateLimitingInterface_Add_Call) Return

func (*RateLimitingInterface_Add_Call) Run

func (_c *RateLimitingInterface_Add_Call) Run(run func(item interface{})) *RateLimitingInterface_Add_Call

func (*RateLimitingInterface_Add_Call) RunAndReturn

func (_c *RateLimitingInterface_Add_Call) RunAndReturn(run func(interface{})) *RateLimitingInterface_Add_Call

type RateLimitingInterface_Done_Call

type RateLimitingInterface_Done_Call struct {
	*mock.Call
}

RateLimitingInterface_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'

func (*RateLimitingInterface_Done_Call) Return

func (*RateLimitingInterface_Done_Call) Run

func (_c *RateLimitingInterface_Done_Call) Run(run func(item interface{})) *RateLimitingInterface_Done_Call

func (*RateLimitingInterface_Done_Call) RunAndReturn

func (_c *RateLimitingInterface_Done_Call) RunAndReturn(run func(interface{})) *RateLimitingInterface_Done_Call

type RateLimitingInterface_Expecter

type RateLimitingInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*RateLimitingInterface_Expecter) Add

Add is a helper method to define mock.On call

  • item interface{}

func (*RateLimitingInterface_Expecter) AddAfter

func (_e *RateLimitingInterface_Expecter) AddAfter(item interface{}, duration interface{}) *RateLimitingInterface_AddAfter_Call

AddAfter is a helper method to define mock.On call

  • item interface{}
  • duration time.Duration

func (*RateLimitingInterface_Expecter) AddRateLimited

func (_e *RateLimitingInterface_Expecter) AddRateLimited(item interface{}) *RateLimitingInterface_AddRateLimited_Call

AddRateLimited is a helper method to define mock.On call

  • item interface{}

func (*RateLimitingInterface_Expecter) Done

Done is a helper method to define mock.On call

  • item interface{}

func (*RateLimitingInterface_Expecter) Forget

Forget is a helper method to define mock.On call

  • item interface{}

func (*RateLimitingInterface_Expecter) Get

Get is a helper method to define mock.On call

func (*RateLimitingInterface_Expecter) Len

Len is a helper method to define mock.On call

func (*RateLimitingInterface_Expecter) NumRequeues

NumRequeues is a helper method to define mock.On call

  • item interface{}

func (*RateLimitingInterface_Expecter) ShutDown

ShutDown is a helper method to define mock.On call

func (*RateLimitingInterface_Expecter) ShutDownWithDrain

ShutDownWithDrain is a helper method to define mock.On call

func (*RateLimitingInterface_Expecter) ShuttingDown

ShuttingDown is a helper method to define mock.On call

type RateLimitingInterface_Forget_Call

type RateLimitingInterface_Forget_Call struct {
	*mock.Call
}

RateLimitingInterface_Forget_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Forget'

func (*RateLimitingInterface_Forget_Call) Return

func (*RateLimitingInterface_Forget_Call) Run

func (_c *RateLimitingInterface_Forget_Call) Run(run func(item interface{})) *RateLimitingInterface_Forget_Call

func (*RateLimitingInterface_Forget_Call) RunAndReturn

func (_c *RateLimitingInterface_Forget_Call) RunAndReturn(run func(interface{})) *RateLimitingInterface_Forget_Call

type RateLimitingInterface_Get_Call

type RateLimitingInterface_Get_Call struct {
	*mock.Call
}

RateLimitingInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*RateLimitingInterface_Get_Call) Return

func (_c *RateLimitingInterface_Get_Call) Return(item interface{}, shutdown bool) *RateLimitingInterface_Get_Call

func (*RateLimitingInterface_Get_Call) Run

func (*RateLimitingInterface_Get_Call) RunAndReturn

func (_c *RateLimitingInterface_Get_Call) RunAndReturn(run func() (interface{}, bool)) *RateLimitingInterface_Get_Call

type RateLimitingInterface_Len_Call

type RateLimitingInterface_Len_Call struct {
	*mock.Call
}

RateLimitingInterface_Len_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Len'

func (*RateLimitingInterface_Len_Call) Return

func (*RateLimitingInterface_Len_Call) Run

func (*RateLimitingInterface_Len_Call) RunAndReturn

type RateLimitingInterface_NumRequeues_Call

type RateLimitingInterface_NumRequeues_Call struct {
	*mock.Call
}

RateLimitingInterface_NumRequeues_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NumRequeues'

func (*RateLimitingInterface_NumRequeues_Call) Return

func (*RateLimitingInterface_NumRequeues_Call) Run

func (*RateLimitingInterface_NumRequeues_Call) RunAndReturn

type RateLimitingInterface_ShutDownWithDrain_Call

type RateLimitingInterface_ShutDownWithDrain_Call struct {
	*mock.Call
}

RateLimitingInterface_ShutDownWithDrain_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShutDownWithDrain'

func (*RateLimitingInterface_ShutDownWithDrain_Call) Return

func (*RateLimitingInterface_ShutDownWithDrain_Call) Run

func (*RateLimitingInterface_ShutDownWithDrain_Call) RunAndReturn

type RateLimitingInterface_ShutDown_Call

type RateLimitingInterface_ShutDown_Call struct {
	*mock.Call
}

RateLimitingInterface_ShutDown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShutDown'

func (*RateLimitingInterface_ShutDown_Call) Return

func (*RateLimitingInterface_ShutDown_Call) Run

func (*RateLimitingInterface_ShutDown_Call) RunAndReturn

type RateLimitingInterface_ShuttingDown_Call

type RateLimitingInterface_ShuttingDown_Call struct {
	*mock.Call
}

RateLimitingInterface_ShuttingDown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShuttingDown'

func (*RateLimitingInterface_ShuttingDown_Call) Return

func (*RateLimitingInterface_ShuttingDown_Call) Run

func (*RateLimitingInterface_ShuttingDown_Call) RunAndReturn

Jump to

Keyboard shortcuts

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