mocks

package
v0.0.0-...-d16afb3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 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 TypedRateLimitingInterface

type TypedRateLimitingInterface[T comparable] struct {
	mock.Mock
}

TypedRateLimitingInterface is an autogenerated mock type for the TypedRateLimitingInterface type

func NewTypedRateLimitingInterface

func NewTypedRateLimitingInterface[T comparable](t interface {
	mock.TestingT
	Cleanup(func())
}) *TypedRateLimitingInterface[T]

NewTypedRateLimitingInterface creates a new instance of TypedRateLimitingInterface. 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 (*TypedRateLimitingInterface[T]) Add

func (_m *TypedRateLimitingInterface[T]) Add(item T)

Add provides a mock function with given fields: item

func (*TypedRateLimitingInterface[T]) AddAfter

func (_m *TypedRateLimitingInterface[T]) AddAfter(item T, duration time.Duration)

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

func (*TypedRateLimitingInterface[T]) AddRateLimited

func (_m *TypedRateLimitingInterface[T]) AddRateLimited(item T)

AddRateLimited provides a mock function with given fields: item

func (*TypedRateLimitingInterface[T]) Done

func (_m *TypedRateLimitingInterface[T]) Done(item T)

Done provides a mock function with given fields: item

func (*TypedRateLimitingInterface[T]) EXPECT

func (*TypedRateLimitingInterface[T]) Forget

func (_m *TypedRateLimitingInterface[T]) Forget(item T)

Forget provides a mock function with given fields: item

func (*TypedRateLimitingInterface[T]) Get

func (_m *TypedRateLimitingInterface[T]) Get() (T, bool)

Get provides a mock function with given fields:

func (*TypedRateLimitingInterface[T]) Len

func (_m *TypedRateLimitingInterface[T]) Len() int

Len provides a mock function with given fields:

func (*TypedRateLimitingInterface[T]) NumRequeues

func (_m *TypedRateLimitingInterface[T]) NumRequeues(item T) int

NumRequeues provides a mock function with given fields: item

func (*TypedRateLimitingInterface[T]) ShutDown

func (_m *TypedRateLimitingInterface[T]) ShutDown()

ShutDown provides a mock function with given fields:

func (*TypedRateLimitingInterface[T]) ShutDownWithDrain

func (_m *TypedRateLimitingInterface[T]) ShutDownWithDrain()

ShutDownWithDrain provides a mock function with given fields:

func (*TypedRateLimitingInterface[T]) ShuttingDown

func (_m *TypedRateLimitingInterface[T]) ShuttingDown() bool

ShuttingDown provides a mock function with given fields:

type TypedRateLimitingInterface_AddAfter_Call

type TypedRateLimitingInterface_AddAfter_Call[T comparable] struct {
	*mock.Call
}

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

func (*TypedRateLimitingInterface_AddAfter_Call[T]) Return

func (*TypedRateLimitingInterface_AddAfter_Call[T]) Run

func (*TypedRateLimitingInterface_AddAfter_Call[T]) RunAndReturn

type TypedRateLimitingInterface_AddRateLimited_Call

type TypedRateLimitingInterface_AddRateLimited_Call[T comparable] struct {
	*mock.Call
}

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

func (*TypedRateLimitingInterface_AddRateLimited_Call[T]) Return

func (*TypedRateLimitingInterface_AddRateLimited_Call[T]) Run

func (*TypedRateLimitingInterface_AddRateLimited_Call[T]) RunAndReturn

type TypedRateLimitingInterface_Add_Call

type TypedRateLimitingInterface_Add_Call[T comparable] struct {
	*mock.Call
}

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

func (*TypedRateLimitingInterface_Add_Call[T]) Return

func (*TypedRateLimitingInterface_Add_Call[T]) Run

func (*TypedRateLimitingInterface_Add_Call[T]) RunAndReturn

func (_c *TypedRateLimitingInterface_Add_Call[T]) RunAndReturn(run func(T)) *TypedRateLimitingInterface_Add_Call[T]

type TypedRateLimitingInterface_Done_Call

type TypedRateLimitingInterface_Done_Call[T comparable] struct {
	*mock.Call
}

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

func (*TypedRateLimitingInterface_Done_Call[T]) Return

func (*TypedRateLimitingInterface_Done_Call[T]) Run

func (*TypedRateLimitingInterface_Done_Call[T]) RunAndReturn

type TypedRateLimitingInterface_Expecter

type TypedRateLimitingInterface_Expecter[T comparable] struct {
	// contains filtered or unexported fields
}

func (*TypedRateLimitingInterface_Expecter[T]) Add

Add is a helper method to define mock.On call

  • item T

func (*TypedRateLimitingInterface_Expecter[T]) AddAfter

func (_e *TypedRateLimitingInterface_Expecter[T]) AddAfter(item interface{}, duration interface{}) *TypedRateLimitingInterface_AddAfter_Call[T]

AddAfter is a helper method to define mock.On call

  • item T
  • duration time.Duration

func (*TypedRateLimitingInterface_Expecter[T]) AddRateLimited

func (_e *TypedRateLimitingInterface_Expecter[T]) AddRateLimited(item interface{}) *TypedRateLimitingInterface_AddRateLimited_Call[T]

AddRateLimited is a helper method to define mock.On call

  • item T

func (*TypedRateLimitingInterface_Expecter[T]) Done

Done is a helper method to define mock.On call

  • item T

func (*TypedRateLimitingInterface_Expecter[T]) Forget

Forget is a helper method to define mock.On call

  • item T

func (*TypedRateLimitingInterface_Expecter[T]) Get

Get is a helper method to define mock.On call

func (*TypedRateLimitingInterface_Expecter[T]) Len

Len is a helper method to define mock.On call

func (*TypedRateLimitingInterface_Expecter[T]) NumRequeues

NumRequeues is a helper method to define mock.On call

  • item T

func (*TypedRateLimitingInterface_Expecter[T]) ShutDown

ShutDown is a helper method to define mock.On call

func (*TypedRateLimitingInterface_Expecter[T]) ShutDownWithDrain

ShutDownWithDrain is a helper method to define mock.On call

func (*TypedRateLimitingInterface_Expecter[T]) ShuttingDown

ShuttingDown is a helper method to define mock.On call

type TypedRateLimitingInterface_Forget_Call

type TypedRateLimitingInterface_Forget_Call[T comparable] struct {
	*mock.Call
}

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

func (*TypedRateLimitingInterface_Forget_Call[T]) Return

func (*TypedRateLimitingInterface_Forget_Call[T]) Run

func (*TypedRateLimitingInterface_Forget_Call[T]) RunAndReturn

type TypedRateLimitingInterface_Get_Call

type TypedRateLimitingInterface_Get_Call[T comparable] struct {
	*mock.Call
}

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

func (*TypedRateLimitingInterface_Get_Call[T]) Return

func (*TypedRateLimitingInterface_Get_Call[T]) Run

func (*TypedRateLimitingInterface_Get_Call[T]) RunAndReturn

func (_c *TypedRateLimitingInterface_Get_Call[T]) RunAndReturn(run func() (T, bool)) *TypedRateLimitingInterface_Get_Call[T]

type TypedRateLimitingInterface_Len_Call

type TypedRateLimitingInterface_Len_Call[T comparable] struct {
	*mock.Call
}

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

func (*TypedRateLimitingInterface_Len_Call[T]) Return

func (*TypedRateLimitingInterface_Len_Call[T]) Run

func (*TypedRateLimitingInterface_Len_Call[T]) RunAndReturn

type TypedRateLimitingInterface_NumRequeues_Call

type TypedRateLimitingInterface_NumRequeues_Call[T comparable] struct {
	*mock.Call
}

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

func (*TypedRateLimitingInterface_NumRequeues_Call[T]) Return

func (*TypedRateLimitingInterface_NumRequeues_Call[T]) Run

func (*TypedRateLimitingInterface_NumRequeues_Call[T]) RunAndReturn

type TypedRateLimitingInterface_ShutDownWithDrain_Call

type TypedRateLimitingInterface_ShutDownWithDrain_Call[T comparable] struct {
	*mock.Call
}

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

func (*TypedRateLimitingInterface_ShutDownWithDrain_Call[T]) Return

func (*TypedRateLimitingInterface_ShutDownWithDrain_Call[T]) Run

func (*TypedRateLimitingInterface_ShutDownWithDrain_Call[T]) RunAndReturn

type TypedRateLimitingInterface_ShutDown_Call

type TypedRateLimitingInterface_ShutDown_Call[T comparable] struct {
	*mock.Call
}

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

func (*TypedRateLimitingInterface_ShutDown_Call[T]) Return

func (*TypedRateLimitingInterface_ShutDown_Call[T]) Run

func (*TypedRateLimitingInterface_ShutDown_Call[T]) RunAndReturn

type TypedRateLimitingInterface_ShuttingDown_Call

type TypedRateLimitingInterface_ShuttingDown_Call[T comparable] struct {
	*mock.Call
}

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

func (*TypedRateLimitingInterface_ShuttingDown_Call[T]) Return

func (*TypedRateLimitingInterface_ShuttingDown_Call[T]) Run

func (*TypedRateLimitingInterface_ShuttingDown_Call[T]) RunAndReturn

Jump to

Keyboard shortcuts

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