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 ApplicationRepository

type ApplicationRepository struct {
	mock.Mock
}

ApplicationRepository is an autogenerated mock type for the ApplicationRepository type

func NewApplicationRepository

func NewApplicationRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationRepository

NewApplicationRepository creates a new instance of ApplicationRepository. 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 (*ApplicationRepository) GetByID

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

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

func (*ApplicationRepository) OwnerExists

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

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

type ApplicationTemplateRepository

type ApplicationTemplateRepository struct {
	mock.Mock
}

ApplicationTemplateRepository is an autogenerated mock type for the ApplicationTemplateRepository type

func NewApplicationTemplateRepository

func NewApplicationTemplateRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationTemplateRepository

NewApplicationTemplateRepository creates a new instance of ApplicationTemplateRepository. 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 (*ApplicationTemplateRepository) Exists

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

type FormationAssignmentNotificationService

type FormationAssignmentNotificationService struct {
	mock.Mock
}

FormationAssignmentNotificationService is an autogenerated mock type for the FormationAssignmentNotificationService type

func NewFormationAssignmentNotificationService

func NewFormationAssignmentNotificationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationAssignmentNotificationService

NewFormationAssignmentNotificationService creates a new instance of FormationAssignmentNotificationService. 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 (*FormationAssignmentNotificationService) GenerateFormationAssignmentPair

GenerateFormationAssignmentPair provides a mock function with given fields: ctx, fa, reverseFA, operation

type FormationAssignmentService

type FormationAssignmentService struct {
	mock.Mock
}

FormationAssignmentService is an autogenerated mock type for the FormationAssignmentService type

func NewFormationAssignmentService

func NewFormationAssignmentService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationAssignmentService

NewFormationAssignmentService creates a new instance of FormationAssignmentService. 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 (*FormationAssignmentService) Delete

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

func (*FormationAssignmentService) GetGlobalByIDAndFormationID

func (_m *FormationAssignmentService) GetGlobalByIDAndFormationID(ctx context.Context, formationAssignmentID string, formationID string) (*model.FormationAssignment, error)

GetGlobalByIDAndFormationID provides a mock function with given fields: ctx, formationAssignmentID, formationID

func (*FormationAssignmentService) GetReverseBySourceAndTarget

func (_m *FormationAssignmentService) GetReverseBySourceAndTarget(ctx context.Context, formationID string, sourceID string, targetID string) (*model.FormationAssignment, error)

GetReverseBySourceAndTarget provides a mock function with given fields: ctx, formationID, sourceID, targetID

func (*FormationAssignmentService) ListFormationAssignmentsForObjectID

func (_m *FormationAssignmentService) ListFormationAssignmentsForObjectID(ctx context.Context, formationID string, objectID string) ([]*model.FormationAssignment, error)

ListFormationAssignmentsForObjectID provides a mock function with given fields: ctx, formationID, objectID

func (*FormationAssignmentService) ProcessFormationAssignmentPair

func (_m *FormationAssignmentService) ProcessFormationAssignmentPair(ctx context.Context, mappingPair *formationassignment.AssignmentMappingPairWithOperation) (bool, error)

ProcessFormationAssignmentPair provides a mock function with given fields: ctx, mappingPair

func (*FormationAssignmentService) SetAssignmentToErrorState

func (_m *FormationAssignmentService) SetAssignmentToErrorState(ctx context.Context, assignment *model.FormationAssignment, errorMessage string, errorCode formationassignment.AssignmentErrorCode, state model.FormationAssignmentState) error

SetAssignmentToErrorState provides a mock function with given fields: ctx, assignment, errorMessage, errorCode, state

func (*FormationAssignmentService) Update

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

type FormationAssignmentStatusService

type FormationAssignmentStatusService struct {
	mock.Mock
}

FormationAssignmentStatusService is an autogenerated mock type for the formationAssignmentStatusService type

func NewFormationAssignmentStatusService

func NewFormationAssignmentStatusService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationAssignmentStatusService

NewFormationAssignmentStatusService creates a new instance of FormationAssignmentStatusService. 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 (*FormationAssignmentStatusService) DeleteWithConstraints

func (_m *FormationAssignmentStatusService) DeleteWithConstraints(ctx context.Context, id string, notificationStatusReport *statusreport.NotificationStatusReport) error

DeleteWithConstraints provides a mock function with given fields: ctx, id, notificationStatusReport

func (*FormationAssignmentStatusService) UpdateWithConstraints

func (_m *FormationAssignmentStatusService) UpdateWithConstraints(ctx context.Context, notificationStatusReport *statusreport.NotificationStatusReport, fa *model.FormationAssignment, operation model.FormationOperation) error

UpdateWithConstraints provides a mock function with given fields: ctx, notificationStatusReport, fa, operation

type FormationRepository

type FormationRepository struct {
	mock.Mock
}

FormationRepository is an autogenerated mock type for the FormationRepository type

func NewFormationRepository

func NewFormationRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationRepository

NewFormationRepository creates a new instance of FormationRepository. 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 (*FormationRepository) GetGlobalByID

func (_m *FormationRepository) GetGlobalByID(ctx context.Context, id string) (*model.Formation, error)

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

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

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

func (*FormationService) GetGlobalByID

func (_m *FormationService) GetGlobalByID(ctx context.Context, id string) (*model.Formation, error)

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

func (*FormationService) ResynchronizeFormationNotifications

func (_m *FormationService) ResynchronizeFormationNotifications(ctx context.Context, formationID string, reset bool) (*model.Formation, error)

ResynchronizeFormationNotifications provides a mock function with given fields: ctx, formationID, reset

func (*FormationService) UnassignFromScenarioLabel

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

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

type FormationStatusService

type FormationStatusService struct {
	mock.Mock
}

FormationStatusService is an autogenerated mock type for the formationStatusService type

func NewFormationStatusService

func NewFormationStatusService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationStatusService

NewFormationStatusService creates a new instance of FormationStatusService. 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 (*FormationStatusService) DeleteFormationEntityAndScenariosWithConstraints

func (_m *FormationStatusService) DeleteFormationEntityAndScenariosWithConstraints(ctx context.Context, tnt string, formation *model.Formation) error

DeleteFormationEntityAndScenariosWithConstraints provides a mock function with given fields: ctx, tnt, formation

func (*FormationStatusService) SetFormationToErrorStateWithConstraints

func (_m *FormationStatusService) SetFormationToErrorStateWithConstraints(ctx context.Context, formation *model.Formation, errorMessage string, errorCode formationassignment.AssignmentErrorCode, state model.FormationState, operation model.FormationOperation) error

SetFormationToErrorStateWithConstraints provides a mock function with given fields: ctx, formation, errorMessage, errorCode, state, operation

func (*FormationStatusService) UpdateWithConstraints

func (_m *FormationStatusService) UpdateWithConstraints(ctx context.Context, formation *model.Formation, operation model.FormationOperation) error

UpdateWithConstraints provides a mock function with given fields: ctx, formation, operation

type FormationTemplateRepository

type FormationTemplateRepository struct {
	mock.Mock
}

FormationTemplateRepository is an autogenerated mock type for the FormationTemplateRepository type

func NewFormationTemplateRepository

func NewFormationTemplateRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationTemplateRepository

NewFormationTemplateRepository creates a new instance of FormationTemplateRepository. 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 (*FormationTemplateRepository) Get

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

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

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

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

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

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

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 TenantRepository

type TenantRepository struct {
	mock.Mock
}

TenantRepository is an autogenerated mock type for the TenantRepository type

func NewTenantRepository

func NewTenantRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantRepository

NewTenantRepository creates a new instance of TenantRepository. 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 (*TenantRepository) Get

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

Jump to

Keyboard shortcuts

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