mocks

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

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 v1.15.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 v1.15.1

func (*IndexedWorkQueue) Get

Get provides a mock function with given fields: id

func (*IndexedWorkQueue) Queue

func (_m *IndexedWorkQueue) Queue(ctx context.Context, id string, once workqueue.WorkItem) error

Queue provides a mock function with given fields: ctx, id, once

func (*IndexedWorkQueue) Start

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

Start provides a mock function with given fields: ctx

type IndexedWorkQueue_Expecter added in v1.15.1

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

func (*IndexedWorkQueue_Expecter) Get added in v1.15.1

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

Get is a helper method to define mock.On call

  • id string

func (*IndexedWorkQueue_Expecter) Queue added in v1.15.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 string
  • once workqueue.WorkItem

func (*IndexedWorkQueue_Expecter) Start added in v1.15.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 v1.15.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 v1.15.1

func (*IndexedWorkQueue_Get_Call) Run added in v1.15.1

func (*IndexedWorkQueue_Get_Call) RunAndReturn added in v1.15.1

type IndexedWorkQueue_Queue_Call added in v1.15.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 v1.15.1

func (*IndexedWorkQueue_Queue_Call) Run added in v1.15.1

func (*IndexedWorkQueue_Queue_Call) RunAndReturn added in v1.15.1

type IndexedWorkQueue_Start_Call added in v1.15.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 v1.15.1

func (*IndexedWorkQueue_Start_Call) Run added in v1.15.1

func (*IndexedWorkQueue_Start_Call) RunAndReturn added in v1.15.1

type Processor

type Processor struct {
	mock.Mock
}

Processor is an autogenerated mock type for the Processor type

func NewProcessor added in v1.15.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 v1.15.1

func (_m *Processor) EXPECT() *Processor_Expecter

func (*Processor) Process

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

Process provides a mock function with given fields: ctx, workItem

type Processor_Expecter added in v1.15.1

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

func (*Processor_Expecter) Process added in v1.15.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 v1.15.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 v1.15.1

func (*Processor_Process_Call) Run added in v1.15.1

func (*Processor_Process_Call) RunAndReturn added in v1.15.1

type WorkItem

type WorkItem struct {
	mock.Mock
}

WorkItem is an autogenerated mock type for the WorkItem type

func NewWorkItem added in v1.15.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 v1.15.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 v1.15.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 v1.15.1

func (_m *WorkItemInfo) EXPECT() *WorkItemInfo_Expecter

func (*WorkItemInfo) Error

func (_m *WorkItemInfo) Error() error

Error provides a mock function with no fields

func (*WorkItemInfo) ID

func (_m *WorkItemInfo) ID() string

ID provides a mock function with no fields

func (*WorkItemInfo) Item

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

Item provides a mock function with no fields

func (*WorkItemInfo) Status

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

Status provides a mock function with no fields

type WorkItemInfo_Error_Call added in v1.15.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 v1.15.1

func (*WorkItemInfo_Error_Call) Run added in v1.15.1

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

func (*WorkItemInfo_Error_Call) RunAndReturn added in v1.15.1

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

type WorkItemInfo_Expecter added in v1.15.1

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

func (*WorkItemInfo_Expecter) Error added in v1.15.1

Error is a helper method to define mock.On call

func (*WorkItemInfo_Expecter) ID added in v1.15.1

ID is a helper method to define mock.On call

func (*WorkItemInfo_Expecter) Item added in v1.15.1

Item is a helper method to define mock.On call

func (*WorkItemInfo_Expecter) Status added in v1.15.1

Status is a helper method to define mock.On call

type WorkItemInfo_ID_Call added in v1.15.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 v1.15.1

func (*WorkItemInfo_ID_Call) Run added in v1.15.1

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

func (*WorkItemInfo_ID_Call) RunAndReturn added in v1.15.1

func (_c *WorkItemInfo_ID_Call) RunAndReturn(run func() string) *WorkItemInfo_ID_Call

type WorkItemInfo_Item_Call added in v1.15.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 v1.15.1

func (*WorkItemInfo_Item_Call) Run added in v1.15.1

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

func (*WorkItemInfo_Item_Call) RunAndReturn added in v1.15.1

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

type WorkItemInfo_Status_Call added in v1.15.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 v1.15.1

func (*WorkItemInfo_Status_Call) Run added in v1.15.1

func (*WorkItemInfo_Status_Call) RunAndReturn added in v1.15.1

type WorkItem_Expecter added in v1.15.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