automock

package
v0.0.0-...-d6d012e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationService

type ApplicationService struct {
	mock.Mock
}

ApplicationService is an autogenerated mock type for the ApplicationService type

func NewApplicationService

func NewApplicationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationService

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

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

type ApplicationTemplateService

type ApplicationTemplateService struct {
	mock.Mock
}

ApplicationTemplateService is an autogenerated mock type for the ApplicationTemplateService type

func NewApplicationTemplateService

func NewApplicationTemplateService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationTemplateService

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

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

type AspectConverter

type AspectConverter struct {
	mock.Mock
}

AspectConverter is an autogenerated mock type for the AspectConverter type

func NewAspectConverter

func NewAspectConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *AspectConverter

NewAspectConverter creates a new instance of AspectConverter. 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 (*AspectConverter) MultipleInputFromGraphQL

func (_m *AspectConverter) MultipleInputFromGraphQL(in []*graphql.AspectInput) ([]*model.AspectInput, error)

MultipleInputFromGraphQL provides a mock function with given fields: in

func (*AspectConverter) MultipleToGraphQL

func (_m *AspectConverter) MultipleToGraphQL(in []*model.Aspect, aspectEventResourcesByAspectID map[string][]*model.AspectEventResource) ([]*graphql.Aspect, error)

MultipleToGraphQL provides a mock function with given fields: in, aspectEventResourcesByAspectID

type AspectEventResourceService

type AspectEventResourceService struct {
	mock.Mock
}

AspectEventResourceService is an autogenerated mock type for the AspectEventResourceService type

func NewAspectEventResourceService

func NewAspectEventResourceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AspectEventResourceService

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

func (_m *AspectEventResourceService) Create(ctx context.Context, resourceType resource.Type, resourceID string, aspectID string, in model.AspectEventResourceInput) (string, error)

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

func (*AspectEventResourceService) ListByAspectID

func (_m *AspectEventResourceService) ListByAspectID(ctx context.Context, aspectID string) ([]*model.AspectEventResource, error)

ListByAspectID provides a mock function with given fields: ctx, aspectID

type AspectService

type AspectService struct {
	mock.Mock
}

AspectService is an autogenerated mock type for the AspectService type

func NewAspectService

func NewAspectService(t interface {
	mock.TestingT
	Cleanup(func())
}) *AspectService

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

func (_m *AspectService) Create(ctx context.Context, resourceType resource.Type, resourceID string, integrationDependencyID string, in model.AspectInput) (string, error)

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

func (*AspectService) ListByIntegrationDependencyID

func (_m *AspectService) ListByIntegrationDependencyID(ctx context.Context, integrationDependencyID string) ([]*model.Aspect, error)

ListByIntegrationDependencyID provides a mock function with given fields: ctx, integrationDependencyID

type IntegrationDepConverter

type IntegrationDepConverter struct {
	mock.Mock
}

IntegrationDepConverter is an autogenerated mock type for the IntegrationDepConverter type

func NewIntegrationDepConverter

func NewIntegrationDepConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationDepConverter

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

InputFromGraphQL provides a mock function with given fields: in

func (*IntegrationDepConverter) ToGraphQL

func (_m *IntegrationDepConverter) ToGraphQL(in *model.IntegrationDependency, aspects []*model.Aspect, aspectEventResourcesByAspectID map[string][]*model.AspectEventResource) (*graphql.IntegrationDependency, error)

ToGraphQL provides a mock function with given fields: in, aspects, aspectEventResourcesByAspectID

type IntegrationDependencyConverter

type IntegrationDependencyConverter struct {
	mock.Mock
}

IntegrationDependencyConverter is an autogenerated mock type for the IntegrationDependencyConverter type

func NewIntegrationDependencyConverter

func NewIntegrationDependencyConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationDependencyConverter

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

FromEntity provides a mock function with given fields: entity

func (*IntegrationDependencyConverter) ToEntity

func (_m *IntegrationDependencyConverter) ToEntity(integrationDependencyModel *model.IntegrationDependency) *integrationdependency.Entity

ToEntity provides a mock function with given fields: integrationDependencyModel

type IntegrationDependencyRepository

type IntegrationDependencyRepository struct {
	mock.Mock
}

IntegrationDependencyRepository is an autogenerated mock type for the IntegrationDependencyRepository type

func NewIntegrationDependencyRepository

func NewIntegrationDependencyRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationDependencyRepository

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

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

func (*IntegrationDependencyRepository) CreateGlobal

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

func (*IntegrationDependencyRepository) Delete

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

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

func (*IntegrationDependencyRepository) DeleteGlobal

func (_m *IntegrationDependencyRepository) DeleteGlobal(ctx context.Context, id string) error

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

func (*IntegrationDependencyRepository) GetByID

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

func (*IntegrationDependencyRepository) GetByIDGlobal

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

func (*IntegrationDependencyRepository) ListByApplicationIDs

func (_m *IntegrationDependencyRepository) ListByApplicationIDs(ctx context.Context, tenantID string, applicationIDs []string, pageSize int, cursor string) ([]*model.IntegrationDependencyPage, error)

ListByApplicationIDs provides a mock function with given fields: ctx, tenantID, applicationIDs, pageSize, cursor

func (*IntegrationDependencyRepository) ListByResourceID

func (_m *IntegrationDependencyRepository) ListByResourceID(ctx context.Context, tenantID string, resourceType resource.Type, resourceID string) ([]*model.IntegrationDependency, error)

ListByResourceID provides a mock function with given fields: ctx, tenantID, resourceType, resourceID

func (*IntegrationDependencyRepository) Update

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

func (*IntegrationDependencyRepository) UpdateGlobal

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

type IntegrationDependencyService

type IntegrationDependencyService struct {
	mock.Mock
}

IntegrationDependencyService is an autogenerated mock type for the IntegrationDependencyService type

func NewIntegrationDependencyService

func NewIntegrationDependencyService(t interface {
	mock.TestingT
	Cleanup(func())
}) *IntegrationDependencyService

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

func (_m *IntegrationDependencyService) Create(ctx context.Context, resourceType resource.Type, resourceID string, packageID *string, in model.IntegrationDependencyInput, integrationDependencyHash uint64) (string, error)

Create provides a mock function with given fields: ctx, resourceType, resourceID, packageID, in, integrationDependencyHash

func (*IntegrationDependencyService) Delete

func (_m *IntegrationDependencyService) Delete(ctx context.Context, resourceType resource.Type, id string) error

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

func (*IntegrationDependencyService) Get

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

func (*IntegrationDependencyService) ListByPackageID

func (_m *IntegrationDependencyService) ListByPackageID(ctx context.Context, packageID string) ([]*model.IntegrationDependency, error)

ListByPackageID provides a mock function with given fields: ctx, packageID

type PackageService

type PackageService struct {
	mock.Mock
}

PackageService is an autogenerated mock type for the PackageService type

func NewPackageService

func NewPackageService(t interface {
	mock.TestingT
	Cleanup(func())
}) *PackageService

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

func (_m *PackageService) Create(ctx context.Context, resourceType resource.Type, resourceID string, in model.PackageInput, pkgHash uint64) (string, error)

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

func (*PackageService) Delete

func (_m *PackageService) Delete(ctx context.Context, resourceType resource.Type, id string) error

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

func (*PackageService) Get

func (_m *PackageService) Get(ctx context.Context, id string) (*model.Package, error)

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

func (*PackageService) ListByApplicationID

func (_m *PackageService) ListByApplicationID(ctx context.Context, appID string) ([]*model.Package, error)

ListByApplicationID provides a mock function with given fields: ctx, appID

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:

type VersionConverter

type VersionConverter struct {
	mock.Mock
}

VersionConverter is an autogenerated mock type for the VersionConverter type

func NewVersionConverter

func NewVersionConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *VersionConverter

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

func (_m *VersionConverter) FromEntity(_a0 version.Version) *model.Version

FromEntity provides a mock function with given fields: _a0

func (*VersionConverter) InputFromGraphQL

func (_m *VersionConverter) InputFromGraphQL(in *graphql.VersionInput) *model.VersionInput

InputFromGraphQL provides a mock function with given fields: in

func (*VersionConverter) ToEntity

func (_m *VersionConverter) ToEntity(_a0 model.Version) version.Version

ToEntity provides a mock function with given fields: _a0

func (*VersionConverter) ToGraphQL

func (_m *VersionConverter) ToGraphQL(in *model.Version) *graphql.Version

ToGraphQL provides a mock function with given fields: in

Jump to

Keyboard shortcuts

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