automock

package
v0.0.0-...-11306c2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	mock.Mock
}

Converter is an autogenerated mock type for the Converter type

func NewConverter

func NewConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Converter

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

func (_m *Converter) FromEntity(in *label.Entity) (*model.Label, error)

FromEntity provides a mock function with given fields: in

func (*Converter) ToEntity

func (_m *Converter) ToEntity(in *model.Label) (*label.Entity, error)

ToEntity provides a mock function with given fields: in

type LabelDefinitionRepository

type LabelDefinitionRepository struct {
	mock.Mock
}

LabelDefinitionRepository is an autogenerated mock type for the LabelDefinitionRepository type

func NewLabelDefinitionRepository

func NewLabelDefinitionRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelDefinitionRepository

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

Create provides a mock function with given fields: ctx, def

func (*LabelDefinitionRepository) Exists

func (_m *LabelDefinitionRepository) Exists(ctx context.Context, tenant string, key string) (bool, error)

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

func (*LabelDefinitionRepository) GetByKey

func (_m *LabelDefinitionRepository) GetByKey(ctx context.Context, tenant string, key string) (*model.LabelDefinition, error)

GetByKey provides a mock function with given fields: ctx, tenant, key

type LabelRepository

type LabelRepository struct {
	mock.Mock
}

LabelRepository is an autogenerated mock type for the LabelRepository type

func NewLabelRepository

func NewLabelRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelRepository

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

func (_m *LabelRepository) Create(ctx context.Context, tenant string, _a2 *model.Label) error

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

func (*LabelRepository) GetByKey

func (_m *LabelRepository) GetByKey(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, key string) (*model.Label, error)

GetByKey provides a mock function with given fields: ctx, tenant, objectType, objectID, key

func (*LabelRepository) GetByKeyGlobal

func (_m *LabelRepository) GetByKeyGlobal(ctx context.Context, objectType model.LabelableObject, objectID string, key string) (*model.Label, error)

GetByKeyGlobal provides a mock function with given fields: ctx, objectType, objectID, key

func (*LabelRepository) UpdateWithVersion

func (_m *LabelRepository) UpdateWithVersion(ctx context.Context, tenant string, _a2 *model.Label) error

UpdateWithVersion provides a mock function with given fields: ctx, tenant, _a2

func (*LabelRepository) Upsert

func (_m *LabelRepository) Upsert(ctx context.Context, tenant string, _a2 *model.Label) error

Upsert provides a mock function with given fields: ctx, tenant, _a2

func (*LabelRepository) UpsertGlobal

func (_m *LabelRepository) UpsertGlobal(ctx context.Context, _a1 *model.Label) error

UpsertGlobal 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