mocks

package
v2.0.49 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 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

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

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

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

func (*IndexedWorkQueue_Expecter) Get

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

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

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

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

func (*IndexedWorkQueue_Get_Call) Run

func (*IndexedWorkQueue_Get_Call) RunAndReturn

type IndexedWorkQueue_Queue_Call

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

func (*IndexedWorkQueue_Queue_Call) Run

func (*IndexedWorkQueue_Queue_Call) RunAndReturn

type IndexedWorkQueue_Start_Call

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

func (*IndexedWorkQueue_Start_Call) Run

func (*IndexedWorkQueue_Start_Call) RunAndReturn

type Processor

type Processor struct {
	mock.Mock
}

Processor is an autogenerated mock type for the Processor type

func NewProcessor

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

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

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

func (*Processor_Expecter) Process

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

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

func (*Processor_Process_Call) Run

func (*Processor_Process_Call) RunAndReturn

type WorkItem

type WorkItem struct {
	mock.Mock
}

WorkItem is an autogenerated mock type for the WorkItem type

func NewWorkItem

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

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

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

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

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

func (*WorkItemInfo_Error_Call) Run

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

func (*WorkItemInfo_Error_Call) RunAndReturn

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

type WorkItemInfo_Expecter

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

func (*WorkItemInfo_Expecter) Error

Error is a helper method to define mock.On call

func (*WorkItemInfo_Expecter) ID

ID is a helper method to define mock.On call

func (*WorkItemInfo_Expecter) Item

Item is a helper method to define mock.On call

func (*WorkItemInfo_Expecter) Status

Status is a helper method to define mock.On call

type WorkItemInfo_ID_Call

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

func (*WorkItemInfo_ID_Call) Run

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

func (*WorkItemInfo_ID_Call) RunAndReturn

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

type WorkItemInfo_Item_Call

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

func (*WorkItemInfo_Item_Call) Run

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

func (*WorkItemInfo_Item_Call) RunAndReturn

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

type WorkItemInfo_Status_Call

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

func (*WorkItemInfo_Status_Call) Run

func (*WorkItemInfo_Status_Call) RunAndReturn

type WorkItem_Expecter

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