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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityTypeConverter

type EntityTypeConverter struct {
	mock.Mock
}

EntityTypeConverter is an autogenerated mock type for the EntityTypeConverter type

func NewEntityTypeConverter

func NewEntityTypeConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntityTypeConverter

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

func (_m *EntityTypeConverter) FromEntity(entity *entitytype.Entity) *model.EntityType

FromEntity provides a mock function with given fields: entity

func (*EntityTypeConverter) ToEntity

ToEntity provides a mock function with given fields: in

type EntityTypeRepository

type EntityTypeRepository struct {
	mock.Mock
}

EntityTypeRepository is an autogenerated mock type for the EntityTypeRepository type

func NewEntityTypeRepository

func NewEntityTypeRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntityTypeRepository

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

func (_m *EntityTypeRepository) Create(ctx context.Context, tenant string, item *model.EntityType) error

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

func (*EntityTypeRepository) CreateGlobal

func (_m *EntityTypeRepository) CreateGlobal(ctx context.Context, _a1 *model.EntityType) error

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

func (*EntityTypeRepository) Delete

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

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

func (*EntityTypeRepository) DeleteGlobal

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

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

func (*EntityTypeRepository) Exists

func (_m *EntityTypeRepository) Exists(ctx context.Context, tenant string, id string) (bool, error)

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

func (*EntityTypeRepository) GetByID

func (_m *EntityTypeRepository) GetByID(ctx context.Context, tenant string, id string) (*model.EntityType, error)

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

func (*EntityTypeRepository) GetByIDGlobal

func (_m *EntityTypeRepository) GetByIDGlobal(ctx context.Context, id string) (*model.EntityType, error)

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

func (*EntityTypeRepository) ListByResourceID

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

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

func (*EntityTypeRepository) Update

func (_m *EntityTypeRepository) Update(ctx context.Context, tenant string, item *model.EntityType) error

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

func (*EntityTypeRepository) UpdateGlobal

func (_m *EntityTypeRepository) UpdateGlobal(ctx context.Context, _a1 *model.EntityType) error

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

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:

type VersionConverter

type VersionConverter struct {
	mock.Mock
}

VersionConverter is an autogenerated mock type for the VersionConverter type

func NewVersionConverter

func NewVersionConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *VersionConverter

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

func (_m *VersionConverter) FromEntity(_a0 version.Version) *model.Version

FromEntity provides a mock function with given fields: _a0

func (*VersionConverter) InputFromGraphQL

func (_m *VersionConverter) InputFromGraphQL(in *graphql.VersionInput) *model.VersionInput

InputFromGraphQL provides a mock function with given fields: in

func (*VersionConverter) ToEntity

func (_m *VersionConverter) ToEntity(_a0 model.Version) version.Version

ToEntity provides a mock function with given fields: _a0

func (*VersionConverter) ToGraphQL

func (_m *VersionConverter) ToGraphQL(in *model.Version) *graphql.Version

ToGraphQL provides a mock function with given fields: in

Jump to

Keyboard shortcuts

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