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: 6 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

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

ToEntity provides a mock function with given fields: in

type FormationService

type FormationService struct {
	mock.Mock
}

FormationService is an autogenerated mock type for the formationService type

func NewFormationService

func NewFormationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationService

NewFormationService creates a new instance of FormationService. 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 (*FormationService) AssignFormation

func (_m *FormationService) AssignFormation(ctx context.Context, tnt string, objectID string, objectType graphql.FormationObjectType, formation model.Formation) (*model.Formation, error)

AssignFormation provides a mock function with given fields: ctx, tnt, objectID, objectType, formation

func (*FormationService) GetFormationsForObject

func (_m *FormationService) GetFormationsForObject(ctx context.Context, tnt string, objType model.LabelableObject, objID string) ([]string, error)

GetFormationsForObject provides a mock function with given fields: ctx, tnt, objType, objID

func (*FormationService) GetScenariosFromMatchingASAs

func (_m *FormationService) GetScenariosFromMatchingASAs(ctx context.Context, objectID string, objType graphql.FormationObjectType) ([]string, error)

GetScenariosFromMatchingASAs provides a mock function with given fields: ctx, objectID, objType

func (*FormationService) UnassignFormation

func (_m *FormationService) UnassignFormation(ctx context.Context, tnt string, objectID string, objectType graphql.FormationObjectType, formation model.Formation) (*model.Formation, error)

UnassignFormation provides a mock function with given fields: ctx, tnt, objectID, objectType, formation

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) ListForObject

func (_m *LabelRepository) ListForObject(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string) (map[string]*model.Label, error)

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

type LabelUpsertService

type LabelUpsertService struct {
	mock.Mock
}

LabelUpsertService is an autogenerated mock type for the LabelUpsertService type

func NewLabelUpsertService

func NewLabelUpsertService(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelUpsertService

NewLabelUpsertService creates a new instance of LabelUpsertService. 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 (*LabelUpsertService) UpsertLabel

func (_m *LabelUpsertService) UpsertLabel(ctx context.Context, tenant string, labelInput *model.LabelInput) error

UpsertLabel provides a mock function with given fields: ctx, tenant, labelInput

func (*LabelUpsertService) UpsertMultipleLabels

func (_m *LabelUpsertService) UpsertMultipleLabels(ctx context.Context, tenant string, objectType model.LabelableObject, objectID string, labels map[string]interface{}) error

UpsertMultipleLabels provides a mock function with given fields: ctx, tenant, objectType, objectID, labels

type RuntimeContextConverter

type RuntimeContextConverter struct {
	mock.Mock
}

RuntimeContextConverter is an autogenerated mock type for the RuntimeContextConverter type

func NewRuntimeContextConverter

func NewRuntimeContextConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeContextConverter

NewRuntimeContextConverter creates a new instance of RuntimeContextConverter. 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 (*RuntimeContextConverter) InputFromGraphQL

InputFromGraphQL provides a mock function with given fields: in

func (*RuntimeContextConverter) InputFromGraphQLWithRuntimeID

func (_m *RuntimeContextConverter) InputFromGraphQLWithRuntimeID(in graphql.RuntimeContextInput, runtimeID string) model.RuntimeContextInput

InputFromGraphQLWithRuntimeID provides a mock function with given fields: in, runtimeID

func (*RuntimeContextConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type RuntimeContextRepository

type RuntimeContextRepository struct {
	mock.Mock
}

RuntimeContextRepository is an autogenerated mock type for the RuntimeContextRepository type

func NewRuntimeContextRepository

func NewRuntimeContextRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeContextRepository

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

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

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

func (*RuntimeContextRepository) Delete

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

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

func (*RuntimeContextRepository) Exists

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

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

func (*RuntimeContextRepository) GetByID

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

func (*RuntimeContextRepository) GetForRuntime

func (_m *RuntimeContextRepository) GetForRuntime(ctx context.Context, tenant string, id string, runtimeID string) (*model.RuntimeContext, error)

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

func (*RuntimeContextRepository) List

func (_m *RuntimeContextRepository) List(ctx context.Context, runtimeID string, tenant string, filter []*labelfilter.LabelFilter, pageSize int, cursor string) (*model.RuntimeContextPage, error)

List provides a mock function with given fields: ctx, runtimeID, tenant, filter, pageSize, cursor

func (*RuntimeContextRepository) ListAllForRuntime

func (_m *RuntimeContextRepository) ListAllForRuntime(ctx context.Context, tenant string, runtimeID string) ([]*model.RuntimeContext, error)

ListAllForRuntime provides a mock function with given fields: ctx, tenant, runtimeID

func (*RuntimeContextRepository) ListByRuntimeIDs

func (_m *RuntimeContextRepository) ListByRuntimeIDs(ctx context.Context, tenantID string, runtimeIDs []string, pageSize int, cursor string) ([]*model.RuntimeContextPage, error)

ListByRuntimeIDs provides a mock function with given fields: ctx, tenantID, runtimeIDs, pageSize, cursor

func (*RuntimeContextRepository) Update

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

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

type RuntimeContextService

type RuntimeContextService struct {
	mock.Mock
}

RuntimeContextService is an autogenerated mock type for the RuntimeContextService type

func NewRuntimeContextService

func NewRuntimeContextService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeContextService

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

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

func (*RuntimeContextService) Delete

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

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

func (*RuntimeContextService) GetByID

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

func (*RuntimeContextService) ListLabels

func (_m *RuntimeContextService) ListLabels(ctx context.Context, runtimeID string) (map[string]*model.Label, error)

ListLabels provides a mock function with given fields: ctx, runtimeID

func (*RuntimeContextService) Update

Update provides a mock function with given fields: ctx, id, in

type RuntimeRepository

type RuntimeRepository struct {
	mock.Mock
}

RuntimeRepository is an autogenerated mock type for the RuntimeRepository type

func NewRuntimeRepository

func NewRuntimeRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeRepository

NewRuntimeRepository creates a new instance of RuntimeRepository. 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 (*RuntimeRepository) OwnerExists

func (_m *RuntimeRepository) OwnerExists(ctx context.Context, tenant string, id string) (bool, error)

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

type TenantService

type TenantService struct {
	mock.Mock
}

TenantService is an autogenerated mock type for the tenantService type

func NewTenantService

func NewTenantService(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantService

NewTenantService creates a new instance of TenantService. 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 (*TenantService) GetTenantByID

func (_m *TenantService) GetTenantByID(ctx context.Context, id string) (*model.BusinessTenantMapping, error)

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

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