automock

package
v0.0.0-...-984dfe6 Latest Latest
Warning

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

Go to latest
Published: May 14, 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 EntityConverter

type EntityConverter struct {
	mock.Mock
}

EntityConverter is an autogenerated mock type for the EntityConverter type

func NewEntityConverter

func NewEntityConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *EntityConverter

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

func (_m *EntityConverter) FromEntity(entity *product.Entity) (*model.Product, error)

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

func (_m *EntityConverter) ToEntity(in *model.Product) *product.Entity

ToEntity provides a mock function with given fields: in

type ProductRepository

type ProductRepository struct {
	mock.Mock
}

ProductRepository is an autogenerated mock type for the ProductRepository type

func NewProductRepository

func NewProductRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ProductRepository

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

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

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

func (*ProductRepository) CreateGlobal

func (_m *ProductRepository) CreateGlobal(ctx context.Context, _a1 *model.Product) error

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

func (*ProductRepository) Delete

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

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

func (*ProductRepository) DeleteGlobal

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

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

func (*ProductRepository) Exists

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

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

func (*ProductRepository) GetByID

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

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

func (*ProductRepository) GetByIDGlobal

func (_m *ProductRepository) GetByIDGlobal(ctx context.Context, id string) (*model.Product, error)

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

func (*ProductRepository) ListByResourceID

func (_m *ProductRepository) ListByResourceID(ctx context.Context, tenantID string, appID string, resourceType resource.Type) ([]*model.Product, error)

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

func (*ProductRepository) ListGlobal

func (_m *ProductRepository) ListGlobal(ctx context.Context) ([]*model.Product, error)

ListGlobal provides a mock function with given fields: ctx

func (*ProductRepository) Update

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

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

func (*ProductRepository) UpdateGlobal

func (_m *ProductRepository) UpdateGlobal(ctx context.Context, _a1 *model.Product) 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:

Jump to

Keyboard shortcuts

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