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

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

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

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

func (_m *ApplicationService) Exist(ctx context.Context, id string) (bool, error)

Exist 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) Exists

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

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

type AuthConverter

type AuthConverter struct {
	mock.Mock
}

AuthConverter is an autogenerated mock type for the AuthConverter type

func NewAuthConverter

func NewAuthConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *AuthConverter

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

func (_m *AuthConverter) InputFromGraphQL(in *graphql.AuthInput) (*model.AuthInput, error)

InputFromGraphQL provides a mock function with given fields: in

func (*AuthConverter) ToGraphQL

func (_m *AuthConverter) ToGraphQL(in *model.Auth) (*graphql.Auth, error)

ToGraphQL provides a mock function with given fields: in

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(in *webhook.Entity) (*model.Webhook, error)

FromEntity provides a mock function with given fields: in

func (*EntityConverter) ToEntity

func (_m *EntityConverter) ToEntity(in *model.Webhook) (*webhook.Entity, error)

ToEntity provides a mock function with given fields: in

type FormationTemplateService

type FormationTemplateService struct {
	mock.Mock
}

FormationTemplateService is an autogenerated mock type for the formationTemplateService type

func NewFormationTemplateService

func NewFormationTemplateService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationTemplateService

NewFormationTemplateService creates a new instance of FormationTemplateService. 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 (*FormationTemplateService) Exist

func (_m *FormationTemplateService) Exist(ctx context.Context, id string) (bool, error)

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

type RuntimeService

type RuntimeService struct {
	mock.Mock
}

RuntimeService is an autogenerated mock type for the runtimeService type

func NewRuntimeService

func NewRuntimeService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeService

NewRuntimeService creates a new instance of RuntimeService. 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 (*RuntimeService) Exist

func (_m *RuntimeService) Exist(ctx context.Context, id string) (bool, error)

Exist provides a mock function with given fields: ctx, 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) ExtractTenantIDForTenantScopedFormationTemplates

func (_m *TenantService) ExtractTenantIDForTenantScopedFormationTemplates(ctx context.Context) (string, error)

ExtractTenantIDForTenantScopedFormationTemplates provides a mock function with given fields: ctx

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 WebhookConverter

type WebhookConverter struct {
	mock.Mock
}

WebhookConverter is an autogenerated mock type for the WebhookConverter type

func NewWebhookConverter

func NewWebhookConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebhookConverter

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

func (_m *WebhookConverter) InputFromGraphQL(in *graphql.WebhookInput) (*model.WebhookInput, error)

InputFromGraphQL provides a mock function with given fields: in

func (*WebhookConverter) MultipleInputFromGraphQL

func (_m *WebhookConverter) MultipleInputFromGraphQL(in []*graphql.WebhookInput) ([]*model.WebhookInput, error)

MultipleInputFromGraphQL provides a mock function with given fields: in

func (*WebhookConverter) MultipleToGraphQL

func (_m *WebhookConverter) MultipleToGraphQL(in []*model.Webhook) ([]*graphql.Webhook, error)

MultipleToGraphQL provides a mock function with given fields: in

func (*WebhookConverter) ToGraphQL

func (_m *WebhookConverter) ToGraphQL(in *model.Webhook) (*graphql.Webhook, error)

ToGraphQL provides a mock function with given fields: in

type WebhookRepository

type WebhookRepository struct {
	mock.Mock
}

WebhookRepository is an autogenerated mock type for the WebhookRepository type

func NewWebhookRepository

func NewWebhookRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebhookRepository

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

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

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

func (*WebhookRepository) Delete

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

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

func (*WebhookRepository) GetByID

func (_m *WebhookRepository) GetByID(ctx context.Context, tenant string, id string, objectType model.WebhookReferenceObjectType) (*model.Webhook, error)

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

func (*WebhookRepository) GetByIDAndWebhookTypeGlobal

func (_m *WebhookRepository) GetByIDAndWebhookTypeGlobal(ctx context.Context, objectID string, objectType model.WebhookReferenceObjectType, webhookType model.WebhookType) (*model.Webhook, error)

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

func (*WebhookRepository) GetByIDGlobal

func (_m *WebhookRepository) GetByIDGlobal(ctx context.Context, id string) (*model.Webhook, error)

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

func (*WebhookRepository) ListByApplicationTemplateID

func (_m *WebhookRepository) ListByApplicationTemplateID(ctx context.Context, applicationTemplateID string) ([]*model.Webhook, error)

ListByApplicationTemplateID provides a mock function with given fields: ctx, applicationTemplateID

func (*WebhookRepository) ListByReferenceObjectID

func (_m *WebhookRepository) ListByReferenceObjectID(ctx context.Context, tenant string, objID string, objType model.WebhookReferenceObjectType) ([]*model.Webhook, error)

ListByReferenceObjectID provides a mock function with given fields: ctx, tenant, objID, objType

func (*WebhookRepository) ListByReferenceObjectIDGlobal

func (_m *WebhookRepository) ListByReferenceObjectIDGlobal(ctx context.Context, objID string, objType model.WebhookReferenceObjectType) ([]*model.Webhook, error)

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

func (*WebhookRepository) ListByTypeAndLabelFilter

func (_m *WebhookRepository) ListByTypeAndLabelFilter(ctx context.Context, webhookType model.WebhookType, filter []*labelfilter.LabelFilter) ([]*model.Webhook, error)

ListByTypeAndLabelFilter provides a mock function with given fields: ctx, webhookType, filter

func (*WebhookRepository) ListByWebhookType

func (_m *WebhookRepository) ListByWebhookType(ctx context.Context, webhookType model.WebhookType) ([]*model.Webhook, error)

ListByWebhookType provides a mock function with given fields: ctx, webhookType

func (*WebhookRepository) Update

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

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

type WebhookService

type WebhookService struct {
	mock.Mock
}

WebhookService is an autogenerated mock type for the WebhookService type

func NewWebhookService

func NewWebhookService(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebhookService

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

func (_m *WebhookService) Create(ctx context.Context, resourceID string, in model.WebhookInput, objectType model.WebhookReferenceObjectType) (string, error)

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

func (*WebhookService) Delete

func (_m *WebhookService) Delete(ctx context.Context, id string, objectType model.WebhookReferenceObjectType) error

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

func (*WebhookService) EnrichWebhooksWithTenantMappingWebhooks

func (_m *WebhookService) EnrichWebhooksWithTenantMappingWebhooks(in []*graphql.WebhookInput) ([]*graphql.WebhookInput, error)

EnrichWebhooksWithTenantMappingWebhooks provides a mock function with given fields: in

func (*WebhookService) Get

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

func (*WebhookService) GetByIDAndWebhookTypeGlobal

func (_m *WebhookService) GetByIDAndWebhookTypeGlobal(ctx context.Context, objectID string, objectType model.WebhookReferenceObjectType, webhookType model.WebhookType) (*model.Webhook, error)

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

func (*WebhookService) ListAllApplicationWebhooks

func (_m *WebhookService) ListAllApplicationWebhooks(ctx context.Context, applicationID string) ([]*model.Webhook, error)

ListAllApplicationWebhooks provides a mock function with given fields: ctx, applicationID

func (*WebhookService) ListByWebhookType

func (_m *WebhookService) ListByWebhookType(ctx context.Context, webhookType model.WebhookType) ([]*model.Webhook, error)

ListByWebhookType provides a mock function with given fields: ctx, webhookType

func (*WebhookService) ListForApplication

func (_m *WebhookService) ListForApplication(ctx context.Context, applicationID string) ([]*model.Webhook, error)

ListForApplication provides a mock function with given fields: ctx, applicationID

func (*WebhookService) ListForApplicationGlobal

func (_m *WebhookService) ListForApplicationGlobal(ctx context.Context, applicationID string) ([]*model.Webhook, error)

ListForApplicationGlobal provides a mock function with given fields: ctx, applicationID

func (*WebhookService) ListForApplicationTemplate

func (_m *WebhookService) ListForApplicationTemplate(ctx context.Context, applicationTemplateID string) ([]*model.Webhook, error)

ListForApplicationTemplate provides a mock function with given fields: ctx, applicationTemplateID

func (*WebhookService) ListForRuntime

func (_m *WebhookService) ListForRuntime(ctx context.Context, runtimeID string) ([]*model.Webhook, error)

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

func (*WebhookService) Update

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

Jump to

Keyboard shortcuts

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