Documentation ¶
Overview ¶
Package mocks contains generated test code.
Index ¶
- type MockBatchProcessor
- type MockBatchProcessor_Expecter
- type MockBatchProcessor_ProcessJobs_Call
- func (_c *MockBatchProcessor_ProcessJobs_Call[QQ, SS]) Return(_a0 SS, _a1 error) *MockBatchProcessor_ProcessJobs_Call[QQ, SS]
- func (_c *MockBatchProcessor_ProcessJobs_Call[QQ, SS]) Run(run func(jobs QQ)) *MockBatchProcessor_ProcessJobs_Call[QQ, SS]
- func (_c *MockBatchProcessor_ProcessJobs_Call[QQ, SS]) RunAndReturn(run func(QQ) (SS, error)) *MockBatchProcessor_ProcessJobs_Call[QQ, SS]
- type MockProcessor
- type MockProcessor_Expecter
- type MockProcessor_Process_Call
- func (_c *MockProcessor_Process_Call[Q, S]) Return() *MockProcessor_Process_Call[Q, S]
- func (_c *MockProcessor_Process_Call[Q, S]) Run(run func(requests []types.BatchRequest[Q, S])) *MockProcessor_Process_Call[Q, S]
- func (_c *MockProcessor_Process_Call[Q, S]) RunAndReturn(run func([]types.BatchRequest[Q, S])) *MockProcessor_Process_Call[Q, S]
- type MockTimerDelegate
- type MockTimerDelegate_Expecter
- type MockTimerDelegate_Reset_Call
- func (_c *MockTimerDelegate_Reset_Call) Return(_a0 bool) *MockTimerDelegate_Reset_Call
- func (_c *MockTimerDelegate_Reset_Call) Run(run func(d time.Duration)) *MockTimerDelegate_Reset_Call
- func (_c *MockTimerDelegate_Reset_Call) RunAndReturn(run func(time.Duration) bool) *MockTimerDelegate_Reset_Call
- type MockTimerDelegate_Stop_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBatchProcessor ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 (_m *MockTimerDelegate) EXPECT() *MockTimerDelegate_Expecter
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 ¶
func (_e *MockTimerDelegate_Expecter) Stop() *MockTimerDelegate_Stop_Call
Stop is a helper method to define mock.On call
type MockTimerDelegate_Reset_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 (_c *MockTimerDelegate_Reset_Call) Return(_a0 bool) *MockTimerDelegate_Reset_Call
func (*MockTimerDelegate_Reset_Call) Run ¶
func (_c *MockTimerDelegate_Reset_Call) Run(run func(d time.Duration)) *MockTimerDelegate_Reset_Call
func (*MockTimerDelegate_Reset_Call) RunAndReturn ¶
func (_c *MockTimerDelegate_Reset_Call) RunAndReturn(run func(time.Duration) bool) *MockTimerDelegate_Reset_Call
type MockTimerDelegate_Stop_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 (_c *MockTimerDelegate_Stop_Call) Return(_a0 bool) *MockTimerDelegate_Stop_Call
func (*MockTimerDelegate_Stop_Call) Run ¶
func (_c *MockTimerDelegate_Stop_Call) Run(run func()) *MockTimerDelegate_Stop_Call
func (*MockTimerDelegate_Stop_Call) RunAndReturn ¶
func (_c *MockTimerDelegate_Stop_Call) RunAndReturn(run func() bool) *MockTimerDelegate_Stop_Call