mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDataProcessor

type MockDataProcessor[T interface{}] struct {
	mock.Mock
}

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

type MockDataProcessor_Process_Call[T interface{}] struct {
	*mock.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 (*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]

Jump to

Keyboard shortcuts

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