mocks

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mocks contains generated test code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBatchProcessor

type MockBatchProcessor[QQ interface{}, SS interface{}] struct {
	mock.Mock
}

MockBatchProcessor is an autogenerated mock type for the BatchProcessor type

func NewMockBatchProcessor

func NewMockBatchProcessor[QQ interface{}, SS interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBatchProcessor[QQ, SS]

NewMockBatchProcessor creates a new instance of MockBatchProcessor. 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 (*MockBatchProcessor[QQ, SS]) EXPECT

func (_m *MockBatchProcessor[QQ, SS]) EXPECT() *MockBatchProcessor_Expecter[QQ, SS]

func (*MockBatchProcessor[QQ, SS]) ProcessJobs

func (_m *MockBatchProcessor[QQ, SS]) ProcessJobs(jobs QQ) (SS, error)

ProcessJobs provides a mock function with given fields: jobs

type MockBatchProcessor_Expecter

type MockBatchProcessor_Expecter[QQ interface{}, SS interface{}] struct {
	// contains filtered or unexported fields
}

func (*MockBatchProcessor_Expecter[QQ, SS]) ProcessJobs

func (_e *MockBatchProcessor_Expecter[QQ, SS]) ProcessJobs(jobs interface{}) *MockBatchProcessor_ProcessJobs_Call[QQ, SS]

ProcessJobs is a helper method to define mock.On call

  • jobs QQ

type MockBatchProcessor_ProcessJobs_Call

type MockBatchProcessor_ProcessJobs_Call[QQ interface{}, SS interface{}] struct {
	*mock.Call
}

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

func (*MockBatchProcessor_ProcessJobs_Call[QQ, SS]) Return

func (_c *MockBatchProcessor_ProcessJobs_Call[QQ, SS]) Return(_a0 SS, _a1 error) *MockBatchProcessor_ProcessJobs_Call[QQ, SS]

func (*MockBatchProcessor_ProcessJobs_Call[QQ, SS]) Run

func (_c *MockBatchProcessor_ProcessJobs_Call[QQ, SS]) Run(run func(jobs QQ)) *MockBatchProcessor_ProcessJobs_Call[QQ, SS]

func (*MockBatchProcessor_ProcessJobs_Call[QQ, SS]) RunAndReturn

func (_c *MockBatchProcessor_ProcessJobs_Call[QQ, SS]) RunAndReturn(run func(QQ) (SS, error)) *MockBatchProcessor_ProcessJobs_Call[QQ, SS]

type MockProcessor

type MockProcessor[Q interface{}, S interface{}] struct {
	mock.Mock
}

MockProcessor is an autogenerated mock type for the Processor type

func NewMockProcessor

func NewMockProcessor[Q interface{}, S interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProcessor[Q, S]

NewMockProcessor creates a new instance of MockProcessor. 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 (*MockProcessor[Q, S]) EXPECT

func (_m *MockProcessor[Q, S]) EXPECT() *MockProcessor_Expecter[Q, S]

func (*MockProcessor[Q, S]) Process

func (_m *MockProcessor[Q, S]) Process(requests []types.BatchRequest[Q, S])

Process provides a mock function with given fields: requests

type MockProcessor_Expecter

type MockProcessor_Expecter[Q interface{}, S interface{}] struct {
	// contains filtered or unexported fields
}

func (*MockProcessor_Expecter[Q, S]) Process

func (_e *MockProcessor_Expecter[Q, S]) Process(requests interface{}) *MockProcessor_Process_Call[Q, S]

Process is a helper method to define mock.On call

  • requests []types.BatchRequest[Q,S]

type MockProcessor_Process_Call

type MockProcessor_Process_Call[Q interface{}, S interface{}] struct {
	*mock.Call
}

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

func (*MockProcessor_Process_Call[Q, S]) Return

func (_c *MockProcessor_Process_Call[Q, S]) Return() *MockProcessor_Process_Call[Q, S]

func (*MockProcessor_Process_Call[Q, S]) Run

func (_c *MockProcessor_Process_Call[Q, S]) Run(run func(requests []types.BatchRequest[Q, S])) *MockProcessor_Process_Call[Q, S]

func (*MockProcessor_Process_Call[Q, S]) RunAndReturn

func (_c *MockProcessor_Process_Call[Q, S]) RunAndReturn(run func([]types.BatchRequest[Q, S])) *MockProcessor_Process_Call[Q, S]

type MockTimerDelegate

type MockTimerDelegate struct {
	mock.Mock
}

MockTimerDelegate is an autogenerated mock type for the Delegate type

func NewMockTimerDelegate

func NewMockTimerDelegate(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTimerDelegate

NewMockTimerDelegate creates a new instance of MockTimerDelegate. 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 (*MockTimerDelegate) EXPECT

func (*MockTimerDelegate) Reset

func (_m *MockTimerDelegate) Reset(d time.Duration) bool

Reset provides a mock function with given fields: d

func (*MockTimerDelegate) Stop

func (_m *MockTimerDelegate) Stop() bool

Stop provides a mock function with given fields:

type MockTimerDelegate_Expecter

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

func (*MockTimerDelegate_Expecter) Reset

func (_e *MockTimerDelegate_Expecter) Reset(d interface{}) *MockTimerDelegate_Reset_Call

Reset is a helper method to define mock.On call

  • d time.Duration

func (*MockTimerDelegate_Expecter) Stop

Stop is a helper method to define mock.On call

type MockTimerDelegate_Reset_Call

type MockTimerDelegate_Reset_Call struct {
	*mock.Call
}

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

func (*MockTimerDelegate_Reset_Call) Return

func (*MockTimerDelegate_Reset_Call) Run

func (*MockTimerDelegate_Reset_Call) RunAndReturn

type MockTimerDelegate_Stop_Call

type MockTimerDelegate_Stop_Call struct {
	*mock.Call
}

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

func (*MockTimerDelegate_Stop_Call) Return

func (*MockTimerDelegate_Stop_Call) Run

func (*MockTimerDelegate_Stop_Call) RunAndReturn

func (_c *MockTimerDelegate_Stop_Call) RunAndReturn(run func() bool) *MockTimerDelegate_Stop_Call

Jump to

Keyboard shortcuts

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