automock

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 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

func (_m *EntityConverter) FromEntity(entity *operation.Entity) *model.Operation

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

func (_m *EntityConverter) ToEntity(in *model.Operation) *operation.Entity

ToEntity provides a mock function with given fields: in

type OperationConverter

type OperationConverter struct {
	mock.Mock
}

OperationConverter is an autogenerated mock type for the OperationConverter type

func NewOperationConverter

func NewOperationConverter(t mockConstructorTestingTNewOperationConverter) *OperationConverter

NewOperationConverter creates a new instance of OperationConverter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*OperationConverter) ToGraphQL

func (_m *OperationConverter) ToGraphQL(in *model.Operation) (*graphql.Operation, error)

ToGraphQL provides a mock function with given fields: in

type OperationRepository

type OperationRepository struct {
	mock.Mock
}

OperationRepository is an autogenerated mock type for the OperationRepository type

func NewOperationRepository

func NewOperationRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *OperationRepository

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

func (_m *OperationRepository) Create(ctx context.Context, _a1 *model.Operation) error

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

func (*OperationRepository) DeleteMultiple

func (_m *OperationRepository) DeleteMultiple(ctx context.Context, ids []string) error

DeleteMultiple provides a mock function with given fields: ctx, ids

func (*OperationRepository) DeleteOperations

func (_m *OperationRepository) DeleteOperations(ctx context.Context, operationType model.OperationType, reschedulePeriod time.Duration) error

DeleteOperations provides a mock function with given fields: ctx, operationType, reschedulePeriod

func (*OperationRepository) Get

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

func (*OperationRepository) GetByDataAndType

func (_m *OperationRepository) GetByDataAndType(ctx context.Context, data interface{}, opType model.OperationType) (*model.Operation, error)

GetByDataAndType provides a mock function with given fields: ctx, data, opType

func (*OperationRepository) ListAllByType

func (_m *OperationRepository) ListAllByType(ctx context.Context, opType model.OperationType) ([]*model.Operation, error)

ListAllByType provides a mock function with given fields: ctx, opType

func (*OperationRepository) LockOperation

func (_m *OperationRepository) LockOperation(ctx context.Context, operationID string) (bool, error)

LockOperation provides a mock function with given fields: ctx, operationID

func (*OperationRepository) PriorityQueueListByType

func (_m *OperationRepository) PriorityQueueListByType(ctx context.Context, queueLimit int, opType model.OperationType) ([]*model.Operation, error)

PriorityQueueListByType provides a mock function with given fields: ctx, queueLimit, opType

func (*OperationRepository) RescheduleHangedOperations

func (_m *OperationRepository) RescheduleHangedOperations(ctx context.Context, operationType model.OperationType, hangPeriod time.Duration) error

RescheduleHangedOperations provides a mock function with given fields: ctx, operationType, hangPeriod

func (*OperationRepository) RescheduleOperations

func (_m *OperationRepository) RescheduleOperations(ctx context.Context, operationType model.OperationType, reschedulePeriod time.Duration, operationStatuses []string) error

RescheduleOperations provides a mock function with given fields: ctx, operationType, reschedulePeriod, operationStatuses

func (*OperationRepository) Update

func (_m *OperationRepository) Update(ctx context.Context, _a1 *model.Operation) error

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

type OperationService

type OperationService struct {
	mock.Mock
}

OperationService is an autogenerated mock type for the OperationService type

func NewOperationService

func NewOperationService(t mockConstructorTestingTNewOperationService) *OperationService

NewOperationService creates a new instance of OperationService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*OperationService) Get

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

func (*OperationService) RescheduleOperation

func (_m *OperationService) RescheduleOperation(ctx context.Context, operationID string, priority int) error

RescheduleOperation provides a mock function with given fields: ctx, operationID, priority

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