automock

package
v0.0.0-...-6d13c91 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityTypeMappingConverter

type EntityTypeMappingConverter struct {
	mock.Mock
}

EntityTypeMappingConverter is an autogenerated mock type for the EntityTypeMappingConverter type

func NewEntityTypeMappingConverter

func NewEntityTypeMappingConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntityTypeMappingConverter

NewEntityTypeMappingConverter creates a new instance of EntityTypeMappingConverter. 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 (*EntityTypeMappingConverter) FromEntity

FromEntity provides a mock function with given fields: entity

func (*EntityTypeMappingConverter) ToEntity

ToEntity provides a mock function with given fields: in

type EntityTypeMappingRepository

type EntityTypeMappingRepository struct {
	mock.Mock
}

EntityTypeMappingRepository is an autogenerated mock type for the EntityTypeMappingRepository type

func NewEntityTypeMappingRepository

func NewEntityTypeMappingRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntityTypeMappingRepository

NewEntityTypeMappingRepository creates a new instance of EntityTypeMappingRepository. 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 (*EntityTypeMappingRepository) Create

Create provides a mock function with given fields: ctx, tenant, item

func (*EntityTypeMappingRepository) CreateGlobal

CreateGlobal provides a mock function with given fields: ctx, _a1

func (*EntityTypeMappingRepository) Delete

func (_m *EntityTypeMappingRepository) Delete(ctx context.Context, tenant string, id string) error

Delete provides a mock function with given fields: ctx, tenant, id

func (*EntityTypeMappingRepository) DeleteGlobal

func (_m *EntityTypeMappingRepository) DeleteGlobal(ctx context.Context, id string) error

DeleteGlobal provides a mock function with given fields: ctx, id

func (*EntityTypeMappingRepository) GetByID

GetByID provides a mock function with given fields: ctx, tenant, id

func (*EntityTypeMappingRepository) ListByResourceID

func (_m *EntityTypeMappingRepository) ListByResourceID(ctx context.Context, tenantID string, resourceID string, resourceType resource.Type) ([]*model.EntityTypeMapping, error)

ListByResourceID provides a mock function with given fields: ctx, tenantID, resourceID, resourceType

type UIDService

type UIDService struct {
	mock.Mock
}

UIDService is an autogenerated mock type for the UIDService type

func NewUIDService

func NewUIDService(t interface {
	mock.TestingT
	Cleanup(func())
}) *UIDService

NewUIDService creates a new instance of UIDService. 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 (*UIDService) Generate

func (_m *UIDService) Generate() string

Generate provides a mock function with given fields:

Jump to

Keyboard shortcuts

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