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

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

func (_m *EntityConverter) ToEntity(in *model.Tombstone) *tombstone.Entity

ToEntity provides a mock function with given fields: in

type TombstoneRepository

type TombstoneRepository struct {
	mock.Mock
}

TombstoneRepository is an autogenerated mock type for the TombstoneRepository type

func NewTombstoneRepository

func NewTombstoneRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *TombstoneRepository

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

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

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

func (*TombstoneRepository) CreateGlobal

func (_m *TombstoneRepository) CreateGlobal(ctx context.Context, _a1 *model.Tombstone) error

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

func (*TombstoneRepository) Delete

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

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

func (*TombstoneRepository) Exists

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

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

func (*TombstoneRepository) GetByID

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

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

func (*TombstoneRepository) GetByIDGlobal

func (_m *TombstoneRepository) GetByIDGlobal(ctx context.Context, id string) (*model.Tombstone, error)

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

func (*TombstoneRepository) ListByResourceID

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

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

func (*TombstoneRepository) Update

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

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

func (*TombstoneRepository) UpdateGlobal

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