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 *ordvendor.Entity) (*model.Vendor, error)

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

func (_m *EntityConverter) ToEntity(in *model.Vendor) *ordvendor.Entity

ToEntity provides a mock function with given fields: in

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 VendorRepository

type VendorRepository struct {
	mock.Mock
}

VendorRepository is an autogenerated mock type for the VendorRepository type

func NewVendorRepository

func NewVendorRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *VendorRepository

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

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

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

func (*VendorRepository) CreateGlobal

func (_m *VendorRepository) CreateGlobal(ctx context.Context, _a1 *model.Vendor) error

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

func (*VendorRepository) Delete

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

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

func (*VendorRepository) DeleteGlobal

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

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

func (*VendorRepository) Exists

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

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

func (*VendorRepository) GetByID

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

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

func (*VendorRepository) GetByIDGlobal

func (_m *VendorRepository) GetByIDGlobal(ctx context.Context, id string) (*model.Vendor, error)

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

func (*VendorRepository) ListByResourceID

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

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

func (*VendorRepository) ListGlobal

func (_m *VendorRepository) ListGlobal(ctx context.Context) ([]*model.Vendor, error)

ListGlobal provides a mock function with given fields: ctx

func (*VendorRepository) Update

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

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

func (*VendorRepository) UpdateGlobal

func (_m *VendorRepository) UpdateGlobal(ctx context.Context, _a1 *model.Vendor) error

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

Jump to

Keyboard shortcuts

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