Documentation ¶
Index ¶
- type MockDataProcessor
- type MockDataProcessor_Expecter
- type MockDataProcessor_Process_Call
- func (_c *MockDataProcessor_Process_Call[T]) Return(_a0 T, _a1 error) *MockDataProcessor_Process_Call[T]
- func (_c *MockDataProcessor_Process_Call[T]) Run(run func(_a0 T)) *MockDataProcessor_Process_Call[T]
- func (_c *MockDataProcessor_Process_Call[T]) RunAndReturn(run func(T) (T, error)) *MockDataProcessor_Process_Call[T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDataProcessor ¶
MockDataProcessor is an autogenerated mock type for the DataProcessor type
func NewMockDataProcessor ¶
func NewMockDataProcessor[T interface{}](t interface { mock.TestingT Cleanup(func()) }) *MockDataProcessor[T]
NewMockDataProcessor creates a new instance of MockDataProcessor. 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 (*MockDataProcessor[T]) EXPECT ¶
func (_m *MockDataProcessor[T]) EXPECT() *MockDataProcessor_Expecter[T]
func (*MockDataProcessor[T]) Process ¶
func (_m *MockDataProcessor[T]) Process(_a0 T) (T, error)
Process provides a mock function with given fields: _a0
type MockDataProcessor_Expecter ¶
type MockDataProcessor_Expecter[T interface{}] struct {
// contains filtered or unexported fields
}
func (*MockDataProcessor_Expecter[T]) Process ¶
func (_e *MockDataProcessor_Expecter[T]) Process(_a0 interface{}) *MockDataProcessor_Process_Call[T]
Process is a helper method to define mock.On call
- _a0 T
type MockDataProcessor_Process_Call ¶
MockDataProcessor_Process_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Process'
func (*MockDataProcessor_Process_Call[T]) Return ¶
func (_c *MockDataProcessor_Process_Call[T]) Return(_a0 T, _a1 error) *MockDataProcessor_Process_Call[T]
func (*MockDataProcessor_Process_Call[T]) Run ¶
func (_c *MockDataProcessor_Process_Call[T]) Run(run func(_a0 T)) *MockDataProcessor_Process_Call[T]
func (*MockDataProcessor_Process_Call[T]) RunAndReturn ¶
func (_c *MockDataProcessor_Process_Call[T]) RunAndReturn(run func(T) (T, error)) *MockDataProcessor_Process_Call[T]
Click to show internal directories.
Click to hide internal directories.