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

FromEntity provides a mock function with given fields: in

func (*Converter) ToEntity

func (_m *Converter) ToEntity(in *model.Spec) *spec.Entity

ToEntity provides a mock function with given fields: in

type FetchRequestConverter

type FetchRequestConverter struct {
	mock.Mock
}

FetchRequestConverter is an autogenerated mock type for the FetchRequestConverter type

func NewFetchRequestConverter

func NewFetchRequestConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *FetchRequestConverter

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

InputFromGraphQL provides a mock function with given fields: in

func (*FetchRequestConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type FetchRequestRepository

type FetchRequestRepository struct {
	mock.Mock
}

FetchRequestRepository is an autogenerated mock type for the FetchRequestRepository type

func NewFetchRequestRepository

func NewFetchRequestRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FetchRequestRepository

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

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

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

func (*FetchRequestRepository) CreateGlobal

func (_m *FetchRequestRepository) CreateGlobal(ctx context.Context, item *model.FetchRequest) error

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

func (*FetchRequestRepository) DeleteByReferenceObjectID

func (_m *FetchRequestRepository) DeleteByReferenceObjectID(ctx context.Context, tenant string, objectType model.FetchRequestReferenceObjectType, objectID string) error

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

func (*FetchRequestRepository) DeleteByReferenceObjectIDGlobal

func (_m *FetchRequestRepository) DeleteByReferenceObjectIDGlobal(ctx context.Context, objectType model.FetchRequestReferenceObjectType, objectID string) error

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

func (*FetchRequestRepository) GetByReferenceObjectID

func (_m *FetchRequestRepository) GetByReferenceObjectID(ctx context.Context, tenant string, objectType model.FetchRequestReferenceObjectType, objectID string) (*model.FetchRequest, error)

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

func (*FetchRequestRepository) ListByReferenceObjectIDs

func (_m *FetchRequestRepository) ListByReferenceObjectIDs(ctx context.Context, tenant string, objectType model.FetchRequestReferenceObjectType, objectIDs []string) ([]*model.FetchRequest, error)

ListByReferenceObjectIDs provides a mock function with given fields: ctx, tenant, objectType, objectIDs

func (*FetchRequestRepository) ListByReferenceObjectIDsGlobal

func (_m *FetchRequestRepository) ListByReferenceObjectIDsGlobal(ctx context.Context, objectType model.FetchRequestReferenceObjectType, objectIDs []string) ([]*model.FetchRequest, error)

ListByReferenceObjectIDsGlobal provides a mock function with given fields: ctx, objectType, objectIDs

type FetchRequestService

type FetchRequestService struct {
	mock.Mock
}

FetchRequestService is an autogenerated mock type for the FetchRequestService type

func NewFetchRequestService

func NewFetchRequestService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FetchRequestService

NewFetchRequestService creates a new instance of FetchRequestService. 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 (*FetchRequestService) HandleSpec

func (_m *FetchRequestService) HandleSpec(ctx context.Context, fr *model.FetchRequest) *string

HandleSpec provides a mock function with given fields: ctx, fr

type SpecRepository

type SpecRepository struct {
	mock.Mock
}

SpecRepository is an autogenerated mock type for the SpecRepository type

func NewSpecRepository

func NewSpecRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *SpecRepository

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

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

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

func (*SpecRepository) CreateGlobal

func (_m *SpecRepository) CreateGlobal(ctx context.Context, item *model.Spec) error

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

func (*SpecRepository) Delete

func (_m *SpecRepository) Delete(ctx context.Context, tenant string, id string, objectType model.SpecReferenceObjectType) error

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

func (*SpecRepository) DeleteByReferenceObjectID

func (_m *SpecRepository) DeleteByReferenceObjectID(ctx context.Context, tenant string, objectType model.SpecReferenceObjectType, objectID string) error

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

func (*SpecRepository) DeleteByReferenceObjectIDGlobal

func (_m *SpecRepository) DeleteByReferenceObjectIDGlobal(ctx context.Context, objectType model.SpecReferenceObjectType, objectID string) error

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

func (*SpecRepository) Exists

func (_m *SpecRepository) Exists(ctx context.Context, tenantID string, id string, objectType model.SpecReferenceObjectType) (bool, error)

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

func (*SpecRepository) GetByID

func (_m *SpecRepository) GetByID(ctx context.Context, tenantID string, id string, objectType model.SpecReferenceObjectType) (*model.Spec, error)

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

func (*SpecRepository) GetByIDGlobal

func (_m *SpecRepository) GetByIDGlobal(ctx context.Context, id string) (*model.Spec, error)

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

func (*SpecRepository) ListByReferenceObjectID

func (_m *SpecRepository) ListByReferenceObjectID(ctx context.Context, tenant string, objectType model.SpecReferenceObjectType, objectID string) ([]*model.Spec, error)

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

func (*SpecRepository) ListByReferenceObjectIDGlobal

func (_m *SpecRepository) ListByReferenceObjectIDGlobal(ctx context.Context, objectType model.SpecReferenceObjectType, objectID string) ([]*model.Spec, error)

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

func (*SpecRepository) ListByReferenceObjectIDs

func (_m *SpecRepository) ListByReferenceObjectIDs(ctx context.Context, tenant string, objectType model.SpecReferenceObjectType, objectIDs []string) ([]*model.Spec, error)

ListByReferenceObjectIDs provides a mock function with given fields: ctx, tenant, objectType, objectIDs

func (*SpecRepository) ListIDByReferenceObjectID

func (_m *SpecRepository) ListIDByReferenceObjectID(ctx context.Context, tenant string, objectType model.SpecReferenceObjectType, objectID string) ([]string, error)

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

func (*SpecRepository) ListIDByReferenceObjectIDGlobal

func (_m *SpecRepository) ListIDByReferenceObjectIDGlobal(ctx context.Context, objectType model.SpecReferenceObjectType, objectID string) ([]string, error)

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

func (*SpecRepository) Update

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

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

func (*SpecRepository) UpdateGlobal

func (_m *SpecRepository) UpdateGlobal(ctx context.Context, item *model.Spec) error

UpdateGlobal provides a mock function with given fields: ctx, item

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