Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VariableEntityMappingRepository

type VariableEntityMappingRepository struct {
	mock.Mock
}

VariableEntityMappingRepository is an autogenerated mock type for the VariableEntityMappingRepository type

func NewVariableEntityMappingRepository

func NewVariableEntityMappingRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *VariableEntityMappingRepository

NewVariableEntityMappingRepository creates a new instance of VariableEntityMappingRepository. 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 (*VariableEntityMappingRepository) CommitTx

func (_m *VariableEntityMappingRepository) CommitTx(tx *pg.Tx) error

CommitTx provides a mock function with given fields: tx

func (*VariableEntityMappingRepository) DeleteAllVariablesForEntities

func (_m *VariableEntityMappingRepository) DeleteAllVariablesForEntities(entities []repository.Entity, userId int32) error

DeleteAllVariablesForEntities provides a mock function with given fields: entities, userId

func (*VariableEntityMappingRepository) DeleteVariablesForEntity

func (_m *VariableEntityMappingRepository) DeleteVariablesForEntity(tx *pg.Tx, variableIDs []string, entity repository.Entity, userId int32) error

DeleteVariablesForEntity provides a mock function with given fields: tx, variableIDs, entity, userId

func (*VariableEntityMappingRepository) GetVariablesForEntities

func (_m *VariableEntityMappingRepository) GetVariablesForEntities(entities []repository.Entity) ([]*repository.VariableEntityMapping, error)

GetVariablesForEntities provides a mock function with given fields: entities

func (*VariableEntityMappingRepository) RollbackTx

func (_m *VariableEntityMappingRepository) RollbackTx(tx *pg.Tx) error

RollbackTx provides a mock function with given fields: tx

func (*VariableEntityMappingRepository) SaveVariableEntityMappings

func (_m *VariableEntityMappingRepository) SaveVariableEntityMappings(tx *pg.Tx, mappings []*repository.VariableEntityMapping) error

SaveVariableEntityMappings provides a mock function with given fields: tx, mappings

func (*VariableEntityMappingRepository) StartTx

func (_m *VariableEntityMappingRepository) StartTx() (*pg.Tx, error)

StartTx provides a mock function with given fields:

type VariableEntityMappingService

type VariableEntityMappingService struct {
	mock.Mock
}

VariableEntityMappingService is an autogenerated mock type for the VariableEntityMappingService type

func NewVariableEntityMappingService

func NewVariableEntityMappingService(t interface {
	mock.TestingT
	Cleanup(func())
}) *VariableEntityMappingService

NewVariableEntityMappingService creates a new instance of VariableEntityMappingService. 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 (*VariableEntityMappingService) DeleteMappingsForEntities

func (_m *VariableEntityMappingService) DeleteMappingsForEntities(entities []repository.Entity, userId int32) error

DeleteMappingsForEntities provides a mock function with given fields: entities, userId

func (*VariableEntityMappingService) GetAllMappingsForEntities

func (_m *VariableEntityMappingService) GetAllMappingsForEntities(entities []repository.Entity) (map[repository.Entity][]string, error)

GetAllMappingsForEntities provides a mock function with given fields: entities

func (*VariableEntityMappingService) UpdateVariablesForEntity

func (_m *VariableEntityMappingService) UpdateVariablesForEntity(variableNames []string, entity repository.Entity, userId int32) error

UpdateVariablesForEntity provides a mock function with given fields: variableNames, entity, userId

Jump to

Keyboard shortcuts

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