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

FromEntity provides a mock function with given fields: entity

func (*EntityConverter) ToEntity

ToEntity provides a mock function with given fields: in

type FormationConstraintConverter

type FormationConstraintConverter struct {
	mock.Mock
}

FormationConstraintConverter is an autogenerated mock type for the FormationConstraintConverter type

func NewFormationConstraintConverter

func NewFormationConstraintConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationConstraintConverter

NewFormationConstraintConverter creates a new instance of FormationConstraintConverter. 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 (*FormationConstraintConverter) MultipleToGraphQL

MultipleToGraphQL provides a mock function with given fields: in

type FormationConstraintService

type FormationConstraintService struct {
	mock.Mock
}

FormationConstraintService is an autogenerated mock type for the FormationConstraintService type

func NewFormationConstraintService

func NewFormationConstraintService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationConstraintService

NewFormationConstraintService creates a new instance of FormationConstraintService. 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 (*FormationConstraintService) ListByFormationTemplateIDs

func (_m *FormationConstraintService) ListByFormationTemplateIDs(ctx context.Context, formationTemplateIDs []string) ([][]*model.FormationConstraint, error)

ListByFormationTemplateIDs provides a mock function with given fields: ctx, formationTemplateIDs

type FormationTemplateConverter

type FormationTemplateConverter struct {
	mock.Mock
}

FormationTemplateConverter is an autogenerated mock type for the FormationTemplateConverter type

func NewFormationTemplateConverter

func NewFormationTemplateConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationTemplateConverter

NewFormationTemplateConverter creates a new instance of FormationTemplateConverter. 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 (*FormationTemplateConverter) FromInputGraphQL

FromInputGraphQL provides a mock function with given fields: in

func (*FormationTemplateConverter) FromModelInputToModel

func (_m *FormationTemplateConverter) FromModelInputToModel(in *model.FormationTemplateInput, id string, tenantID string) *model.FormationTemplate

FromModelInputToModel provides a mock function with given fields: in, id, tenantID

func (*FormationTemplateConverter) MultipleToGraphQL

MultipleToGraphQL provides a mock function with given fields: in

func (*FormationTemplateConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

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

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

func (*FormationTemplateRepository) Delete

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

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

func (*FormationTemplateRepository) Exists

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

func (*FormationTemplateRepository) Get

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

func (*FormationTemplateRepository) List

func (_m *FormationTemplateRepository) List(ctx context.Context, name *string, tenantID string, pageSize int, cursor string) (*model.FormationTemplatePage, error)

List provides a mock function with given fields: ctx, name, tenantID, pageSize, cursor

func (*FormationTemplateRepository) Update

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

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

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

func (*FormationTemplateService) Delete

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

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

func (*FormationTemplateService) Get

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

func (*FormationTemplateService) List

func (_m *FormationTemplateService) List(ctx context.Context, name *string, pageSize int, cursor string) (*model.FormationTemplatePage, error)

List provides a mock function with given fields: ctx, name, pageSize, cursor

func (*FormationTemplateService) ListWebhooksForFormationTemplate

func (_m *FormationTemplateService) ListWebhooksForFormationTemplate(ctx context.Context, formationTemplateID string) ([]*model.Webhook, error)

ListWebhooksForFormationTemplate provides a mock function with given fields: ctx, formationTemplateID

func (*FormationTemplateService) Update

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

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

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

func (_m *WebhookRepository) CreateMany(ctx context.Context, tenant string, items []*model.Webhook) error

CreateMany provides a mock function with given fields: ctx, tenant, items

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

func (_m *WebhookService) ListForFormationTemplate(ctx context.Context, tenant string, formationTemplateID string) ([]*model.Webhook, error)

ListForFormationTemplate provides a mock function with given fields: ctx, tenant, formationTemplateID

Jump to

Keyboard shortcuts

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