mocks

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockComponentMapper

type MockComponentMapper struct {
	mock.Mock
}

MockComponentMapper is an autogenerated mock type for the ComponentMapper type

func NewMockComponentMapper

func NewMockComponentMapper(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockComponentMapper

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

func (*MockComponentMapper) MapToComponentDTO

func (_m *MockComponentMapper) MapToComponentDTO(componentEntity entities.Component) entities.ComponentDTO

MapToComponentDTO provides a mock function with given fields: componentEntity

type MockComponentMapper_Expecter

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

func (*MockComponentMapper_Expecter) MapToComponentDTO

func (_e *MockComponentMapper_Expecter) MapToComponentDTO(componentEntity interface{}) *MockComponentMapper_MapToComponentDTO_Call

MapToComponentDTO is a helper method to define mock.On call

  • componentEntity entities.Component

type MockComponentMapper_MapToComponentDTO_Call

type MockComponentMapper_MapToComponentDTO_Call struct {
	*mock.Call
}

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

func (*MockComponentMapper_MapToComponentDTO_Call) Return

func (*MockComponentMapper_MapToComponentDTO_Call) Run

func (*MockComponentMapper_MapToComponentDTO_Call) RunAndReturn

type MockResultMapper

type MockResultMapper struct {
	mock.Mock
}

MockResultMapper is an autogenerated mock type for the ResultMapper type

func NewMockResultMapper

func NewMockResultMapper(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockResultMapper

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

func (*MockResultMapper) MapToResultDTO

func (_m *MockResultMapper) MapToResultDTO(result entities.Result) entities.ResultDTO

MapToResultDTO provides a mock function with given fields: result

func (*MockResultMapper) MapToResultDTOList

func (_m *MockResultMapper) MapToResultDTOList(results []entities.Result) []entities.ResultDTO

MapToResultDTOList provides a mock function with given fields: results

type MockResultMapper_Expecter

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

func (*MockResultMapper_Expecter) MapToResultDTO

func (_e *MockResultMapper_Expecter) MapToResultDTO(result interface{}) *MockResultMapper_MapToResultDTO_Call

MapToResultDTO is a helper method to define mock.On call

  • result entities.Result

func (*MockResultMapper_Expecter) MapToResultDTOList

func (_e *MockResultMapper_Expecter) MapToResultDTOList(results interface{}) *MockResultMapper_MapToResultDTOList_Call

MapToResultDTOList is a helper method to define mock.On call

  • results []entities.Result

type MockResultMapper_MapToResultDTOList_Call

type MockResultMapper_MapToResultDTOList_Call struct {
	*mock.Call
}

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

func (*MockResultMapper_MapToResultDTOList_Call) Return

func (*MockResultMapper_MapToResultDTOList_Call) Run

func (*MockResultMapper_MapToResultDTOList_Call) RunAndReturn

type MockResultMapper_MapToResultDTO_Call

type MockResultMapper_MapToResultDTO_Call struct {
	*mock.Call
}

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

func (*MockResultMapper_MapToResultDTO_Call) Return

func (*MockResultMapper_MapToResultDTO_Call) Run

func (*MockResultMapper_MapToResultDTO_Call) RunAndReturn

Jump to

Keyboard shortcuts

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