mocks

package
v2.0.30 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0, Apache-2.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexedWorkQueue

type IndexedWorkQueue struct {
	mock.Mock
}

IndexedWorkQueue is an autogenerated mock type for the IndexedWorkQueue type

func NewIndexedWorkQueue added in v2.0.1

func NewIndexedWorkQueue(t interface {
	mock.TestingT
	Cleanup(func())
}) *IndexedWorkQueue

NewIndexedWorkQueue creates a new instance of IndexedWorkQueue. 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 (*IndexedWorkQueue) EXPECT added in v2.0.1

func (*IndexedWorkQueue) Get

Get provides a mock function for the type IndexedWorkQueue

func (*IndexedWorkQueue) Queue

Queue provides a mock function for the type IndexedWorkQueue

func (*IndexedWorkQueue) Start

func (_mock *IndexedWorkQueue) Start(ctx context.Context) error

Start provides a mock function for the type IndexedWorkQueue

type IndexedWorkQueue_Expecter added in v2.0.1

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

func (*IndexedWorkQueue_Expecter) Get added in v2.0.1

func (_e *IndexedWorkQueue_Expecter) Get(id interface{}) *IndexedWorkQueue_Get_Call

Get is a helper method to define mock.On call

  • id workqueue.WorkItemID

func (*IndexedWorkQueue_Expecter) Queue added in v2.0.1

func (_e *IndexedWorkQueue_Expecter) Queue(ctx interface{}, id interface{}, once interface{}) *IndexedWorkQueue_Queue_Call

Queue is a helper method to define mock.On call

  • ctx context.Context
  • id workqueue.WorkItemID
  • once workqueue.WorkItem

func (*IndexedWorkQueue_Expecter) Start added in v2.0.1

func (_e *IndexedWorkQueue_Expecter) Start(ctx interface{}) *IndexedWorkQueue_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

type IndexedWorkQueue_Get_Call added in v2.0.1

type IndexedWorkQueue_Get_Call struct {
	*mock.Call
}

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

func (*IndexedWorkQueue_Get_Call) Return added in v2.0.1

func (*IndexedWorkQueue_Get_Call) Run added in v2.0.1

func (*IndexedWorkQueue_Get_Call) RunAndReturn added in v2.0.1

type IndexedWorkQueue_Queue_Call added in v2.0.1

type IndexedWorkQueue_Queue_Call struct {
	*mock.Call
}

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

func (*IndexedWorkQueue_Queue_Call) Return added in v2.0.1

func (*IndexedWorkQueue_Queue_Call) Run added in v2.0.1

func (*IndexedWorkQueue_Queue_Call) RunAndReturn added in v2.0.1

type IndexedWorkQueue_Start_Call added in v2.0.1

type IndexedWorkQueue_Start_Call struct {
	*mock.Call
}

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

func (*IndexedWorkQueue_Start_Call) Return added in v2.0.1

func (*IndexedWorkQueue_Start_Call) Run added in v2.0.1

func (*IndexedWorkQueue_Start_Call) RunAndReturn added in v2.0.1

type Processor

type Processor struct {
	mock.Mock
}

Processor is an autogenerated mock type for the Processor type

func NewProcessor added in v2.0.1

func NewProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *Processor

NewProcessor creates a new instance of Processor. 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 (*Processor) EXPECT added in v2.0.1

func (_m *Processor) EXPECT() *Processor_Expecter

func (*Processor) Process

func (_mock *Processor) Process(ctx context.Context, workItem workqueue.WorkItem) (workqueue.WorkStatus, error)

Process provides a mock function for the type Processor

type Processor_Expecter added in v2.0.1

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

func (*Processor_Expecter) Process added in v2.0.1

func (_e *Processor_Expecter) Process(ctx interface{}, workItem interface{}) *Processor_Process_Call

Process is a helper method to define mock.On call

  • ctx context.Context
  • workItem workqueue.WorkItem

type Processor_Process_Call added in v2.0.1

type Processor_Process_Call struct {
	*mock.Call
}

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

func (*Processor_Process_Call) Return added in v2.0.1

func (*Processor_Process_Call) Run added in v2.0.1

func (*Processor_Process_Call) RunAndReturn added in v2.0.1

type WorkItem

type WorkItem struct {
	mock.Mock
}

WorkItem is an autogenerated mock type for the WorkItem type

func NewWorkItem added in v2.0.1

func NewWorkItem(t interface {
	mock.TestingT
	Cleanup(func())
}) *WorkItem

NewWorkItem creates a new instance of WorkItem. 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 (*WorkItem) EXPECT added in v2.0.1

func (_m *WorkItem) EXPECT() *WorkItem_Expecter

type WorkItemInfo

type WorkItemInfo struct {
	mock.Mock
}

WorkItemInfo is an autogenerated mock type for the WorkItemInfo type

func NewWorkItemInfo added in v2.0.1

func NewWorkItemInfo(t interface {
	mock.TestingT
	Cleanup(func())
}) *WorkItemInfo

NewWorkItemInfo creates a new instance of WorkItemInfo. 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 (*WorkItemInfo) EXPECT added in v2.0.1

func (_m *WorkItemInfo) EXPECT() *WorkItemInfo_Expecter

func (*WorkItemInfo) Error

func (_mock *WorkItemInfo) Error() error

Error provides a mock function for the type WorkItemInfo

func (*WorkItemInfo) ID

func (_mock *WorkItemInfo) ID() workqueue.WorkItemID

ID provides a mock function for the type WorkItemInfo

func (*WorkItemInfo) Item

func (_mock *WorkItemInfo) Item() workqueue.WorkItem

Item provides a mock function for the type WorkItemInfo

func (*WorkItemInfo) Status

func (_mock *WorkItemInfo) Status() workqueue.WorkStatus

Status provides a mock function for the type WorkItemInfo

type WorkItemInfo_Error_Call added in v2.0.1

type WorkItemInfo_Error_Call struct {
	*mock.Call
}

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

func (*WorkItemInfo_Error_Call) Return added in v2.0.1

func (*WorkItemInfo_Error_Call) Run added in v2.0.1

func (_c *WorkItemInfo_Error_Call) Run(run func()) *WorkItemInfo_Error_Call

func (*WorkItemInfo_Error_Call) RunAndReturn added in v2.0.1

func (_c *WorkItemInfo_Error_Call) RunAndReturn(run func() error) *WorkItemInfo_Error_Call

type WorkItemInfo_Expecter added in v2.0.1

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

func (*WorkItemInfo_Expecter) Error added in v2.0.1

Error is a helper method to define mock.On call

func (*WorkItemInfo_Expecter) ID added in v2.0.1

ID is a helper method to define mock.On call

func (*WorkItemInfo_Expecter) Item added in v2.0.1

Item is a helper method to define mock.On call

func (*WorkItemInfo_Expecter) Status added in v2.0.1

Status is a helper method to define mock.On call

type WorkItemInfo_ID_Call added in v2.0.1

type WorkItemInfo_ID_Call struct {
	*mock.Call
}

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

func (*WorkItemInfo_ID_Call) Return added in v2.0.1

func (*WorkItemInfo_ID_Call) Run added in v2.0.1

func (_c *WorkItemInfo_ID_Call) Run(run func()) *WorkItemInfo_ID_Call

func (*WorkItemInfo_ID_Call) RunAndReturn added in v2.0.1

func (_c *WorkItemInfo_ID_Call) RunAndReturn(run func() workqueue.WorkItemID) *WorkItemInfo_ID_Call

type WorkItemInfo_Item_Call added in v2.0.1

type WorkItemInfo_Item_Call struct {
	*mock.Call
}

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

func (*WorkItemInfo_Item_Call) Return added in v2.0.1

func (*WorkItemInfo_Item_Call) Run added in v2.0.1

func (_c *WorkItemInfo_Item_Call) Run(run func()) *WorkItemInfo_Item_Call

func (*WorkItemInfo_Item_Call) RunAndReturn added in v2.0.1

func (_c *WorkItemInfo_Item_Call) RunAndReturn(run func() workqueue.WorkItem) *WorkItemInfo_Item_Call

type WorkItemInfo_Status_Call added in v2.0.1

type WorkItemInfo_Status_Call struct {
	*mock.Call
}

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

func (*WorkItemInfo_Status_Call) Return added in v2.0.1

func (*WorkItemInfo_Status_Call) Run added in v2.0.1

func (*WorkItemInfo_Status_Call) RunAndReturn added in v2.0.1

type WorkItem_Expecter added in v2.0.1

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

Jump to

Keyboard shortcuts

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