automock

package
v0.0.0-...-273ce1f 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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationConverter

type ApplicationConverter struct {
	mock.Mock
}

ApplicationConverter is an autogenerated mock type for the applicationConverter type

func NewApplicationConverter

func NewApplicationConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationConverter

NewApplicationConverter creates a new instance of ApplicationConverter. 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 (*ApplicationConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type ApplicationRepo

type ApplicationRepo struct {
	mock.Mock
}

ApplicationRepo is an autogenerated mock type for the applicationRepo type

func NewApplicationRepo

func NewApplicationRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *ApplicationRepo

NewApplicationRepo creates a new instance of ApplicationRepo. 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 (*ApplicationRepo) ListAllByIDs

func (_m *ApplicationRepo) ListAllByIDs(ctx context.Context, tenantID string, ids []string) ([]*model.Application, error)

ListAllByIDs provides a mock function with given fields: ctx, tenantID, ids

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

func (_m *ApplicationRepository) ListByScenariosNoPaging(ctx context.Context, tenant string, scenarios []string) ([]*model.Application, error)

ListByScenariosNoPaging provides a mock function with given fields: ctx, tenant, scenarios

type ConstraintEngine

type ConstraintEngine struct {
	mock.Mock
}

ConstraintEngine is an autogenerated mock type for the constraintEngine type

func NewConstraintEngine

func NewConstraintEngine(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConstraintEngine

NewConstraintEngine creates a new instance of ConstraintEngine. 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 (*ConstraintEngine) EnforceConstraints

func (_m *ConstraintEngine) EnforceConstraints(ctx context.Context, location formationconstraint.JoinPointLocation, details formationconstraint.JoinPointDetails, formationTemplateID string) error

EnforceConstraints provides a mock function with given fields: ctx, location, details, formationTemplateID

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 FaNotificationService

type FaNotificationService struct {
	mock.Mock
}

FaNotificationService is an autogenerated mock type for the faNotificationService type

func NewFaNotificationService

func NewFaNotificationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FaNotificationService

NewFaNotificationService creates a new instance of FaNotificationService. 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 (*FaNotificationService) GenerateFormationAssignmentNotificationExt

GenerateFormationAssignmentNotificationExt provides a mock function with given fields: ctx, faRequestMapping, reverseFaRequestMapping, operation

func (*FaNotificationService) PrepareDetailsForNotificationStatusReturned

func (_m *FaNotificationService) PrepareDetailsForNotificationStatusReturned(ctx context.Context, tenantID string, fa *model.FormationAssignment, operation model.FormationOperation, notificationStatusReport *statusreport.NotificationStatusReport) (*formationconstraint.NotificationStatusReturnedOperationDetails, error)

PrepareDetailsForNotificationStatusReturned provides a mock function with given fields: ctx, tenantID, fa, operation, notificationStatusReport

type FormationAssignmentRepository

type FormationAssignmentRepository struct {
	mock.Mock
}

FormationAssignmentRepository is an autogenerated mock type for the FormationAssignmentRepository type

func NewFormationAssignmentRepository

func NewFormationAssignmentRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationAssignmentRepository

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

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

func (*FormationAssignmentRepository) Delete

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

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

func (*FormationAssignmentRepository) DeleteAssignmentsForObjectID

func (_m *FormationAssignmentRepository) DeleteAssignmentsForObjectID(ctx context.Context, tnt string, formationID string, objectID string) error

DeleteAssignmentsForObjectID provides a mock function with given fields: ctx, tnt, formationID, objectID

func (*FormationAssignmentRepository) Exists

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

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

func (*FormationAssignmentRepository) Get

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

func (*FormationAssignmentRepository) GetAssignmentsForFormation

func (_m *FormationAssignmentRepository) GetAssignmentsForFormation(ctx context.Context, tenantID string, formationID string) ([]*model.FormationAssignment, error)

GetAssignmentsForFormation provides a mock function with given fields: ctx, tenantID, formationID

func (*FormationAssignmentRepository) GetAssignmentsForFormationWithStates

func (_m *FormationAssignmentRepository) GetAssignmentsForFormationWithStates(ctx context.Context, tenantID string, formationID string, states []string) ([]*model.FormationAssignment, error)

GetAssignmentsForFormationWithStates provides a mock function with given fields: ctx, tenantID, formationID, states

func (*FormationAssignmentRepository) GetByTargetAndSource

func (_m *FormationAssignmentRepository) GetByTargetAndSource(ctx context.Context, target string, source string, tenantID string, formationID string) (*model.FormationAssignment, error)

GetByTargetAndSource provides a mock function with given fields: ctx, target, source, tenantID, formationID

func (*FormationAssignmentRepository) GetForFormation

func (_m *FormationAssignmentRepository) GetForFormation(ctx context.Context, tenantID string, id string, formationID string) (*model.FormationAssignment, error)

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

func (*FormationAssignmentRepository) GetGlobalByID

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

func (*FormationAssignmentRepository) GetGlobalByIDAndFormationID

func (_m *FormationAssignmentRepository) GetGlobalByIDAndFormationID(ctx context.Context, id string, formationID string) (*model.FormationAssignment, error)

GetGlobalByIDAndFormationID provides a mock function with given fields: ctx, id, formationID

func (*FormationAssignmentRepository) GetReverseBySourceAndTarget

func (_m *FormationAssignmentRepository) GetReverseBySourceAndTarget(ctx context.Context, tenantID string, formationID string, sourceID string, targetID string) (*model.FormationAssignment, error)

GetReverseBySourceAndTarget provides a mock function with given fields: ctx, tenantID, formationID, sourceID, targetID

func (*FormationAssignmentRepository) List

func (_m *FormationAssignmentRepository) List(ctx context.Context, pageSize int, cursor string, tenantID string) (*model.FormationAssignmentPage, error)

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

func (*FormationAssignmentRepository) ListAllForObject

func (_m *FormationAssignmentRepository) ListAllForObject(ctx context.Context, tenant string, formationID string, objectID string) ([]*model.FormationAssignment, error)

ListAllForObject provides a mock function with given fields: ctx, tenant, formationID, objectID

func (*FormationAssignmentRepository) ListAllForObjectGlobal

func (_m *FormationAssignmentRepository) ListAllForObjectGlobal(ctx context.Context, objectID string) ([]*model.FormationAssignment, error)

ListAllForObjectGlobal provides a mock function with given fields: ctx, objectID

func (*FormationAssignmentRepository) ListAllForObjectIDs

func (_m *FormationAssignmentRepository) ListAllForObjectIDs(ctx context.Context, tenant string, formationID string, objectIDs []string) ([]*model.FormationAssignment, error)

ListAllForObjectIDs provides a mock function with given fields: ctx, tenant, formationID, objectIDs

func (*FormationAssignmentRepository) ListByFormationIDs

func (_m *FormationAssignmentRepository) ListByFormationIDs(ctx context.Context, tenantID string, formationIDs []string, pageSize int, cursor string) ([]*model.FormationAssignmentPage, error)

ListByFormationIDs provides a mock function with given fields: ctx, tenantID, formationIDs, pageSize, cursor

func (*FormationAssignmentRepository) ListByFormationIDsNoPaging

func (_m *FormationAssignmentRepository) ListByFormationIDsNoPaging(ctx context.Context, tenantID string, formationIDs []string) ([][]*model.FormationAssignment, error)

ListByFormationIDsNoPaging provides a mock function with given fields: ctx, tenantID, formationIDs

func (*FormationAssignmentRepository) ListForIDs

func (_m *FormationAssignmentRepository) ListForIDs(ctx context.Context, tenant string, ids []string) ([]*model.FormationAssignment, error)

ListForIDs provides a mock function with given fields: ctx, tenant, ids

func (*FormationAssignmentRepository) Update

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

type FormationRepository

type FormationRepository struct {
	mock.Mock
}

FormationRepository is an autogenerated mock type for the formationRepository type

func NewFormationRepository

func NewFormationRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *FormationRepository

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

func (_m *FormationRepository) Get(ctx context.Context, id string, tenantID string) (*model.Formation, error)

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

type LabelService

type LabelService struct {
	mock.Mock
}

LabelService is an autogenerated mock type for the labelService type

func NewLabelService

func NewLabelService(t interface {
	mock.TestingT
	Cleanup(func())
}) *LabelService

NewLabelService creates a new instance of LabelService. 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 (*LabelService) GetLabel

func (_m *LabelService) GetLabel(ctx context.Context, tenant string, labelInput *model.LabelInput) (*model.Label, error)

GetLabel provides a mock function with given fields: ctx, tenant, labelInput

type NotificationBuilder

type NotificationBuilder struct {
	mock.Mock
}

NotificationBuilder is an autogenerated mock type for the notificationBuilder type

func NewNotificationBuilder

func NewNotificationBuilder(t interface {
	mock.TestingT
	Cleanup(func())
}) *NotificationBuilder

NewNotificationBuilder creates a new instance of NotificationBuilder. 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 (*NotificationBuilder) BuildFormationAssignmentNotificationRequest

BuildFormationAssignmentNotificationRequest provides a mock function with given fields: ctx, joinPointDetails, _a2

func (*NotificationBuilder) PrepareDetailsForApplicationTenantMappingNotificationGeneration

func (_m *NotificationBuilder) PrepareDetailsForApplicationTenantMappingNotificationGeneration(operation model.FormationOperation, formationTemplateID string, formation *model.Formation, sourceApplicationTemplate *webhook.ApplicationTemplateWithLabels, sourceApplication *webhook.ApplicationWithLabels, targetApplicationTemplate *webhook.ApplicationTemplateWithLabels, targetApplication *webhook.ApplicationWithLabels, assignment *webhook.FormationAssignment, reverseAssignment *webhook.FormationAssignment, tenantContext *webhook.CustomerTenantContext, tenantID string) (*formationconstraint.GenerateFormationAssignmentNotificationOperationDetails, error)

PrepareDetailsForApplicationTenantMappingNotificationGeneration provides a mock function with given fields: operation, formationTemplateID, formation, sourceApplicationTemplate, sourceApplication, targetApplicationTemplate, targetApplication, assignment, reverseAssignment, tenantContext, tenantID

func (*NotificationBuilder) PrepareDetailsForConfigurationChangeNotificationGeneration

func (_m *NotificationBuilder) PrepareDetailsForConfigurationChangeNotificationGeneration(operation model.FormationOperation, formationTemplateID string, formation *model.Formation, applicationTemplate *webhook.ApplicationTemplateWithLabels, application *webhook.ApplicationWithLabels, runtime *webhook.RuntimeWithLabels, runtimeContext *webhook.RuntimeContextWithLabels, assignment *webhook.FormationAssignment, reverseAssignment *webhook.FormationAssignment, targetType model.ResourceType, tenantContext *webhook.CustomerTenantContext, tenantID string) (*formationconstraint.GenerateFormationAssignmentNotificationOperationDetails, error)

PrepareDetailsForConfigurationChangeNotificationGeneration provides a mock function with given fields: operation, formationTemplateID, formation, applicationTemplate, application, runtime, runtimeContext, assignment, reverseAssignment, targetType, tenantContext, tenantID

type NotificationService

type NotificationService struct {
	mock.Mock
}

NotificationService is an autogenerated mock type for the notificationService type

func NewNotificationService

func NewNotificationService(t interface {
	mock.TestingT
	Cleanup(func())
}) *NotificationService

NewNotificationService creates a new instance of NotificationService. 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 (*NotificationService) SendNotification

func (_m *NotificationService) SendNotification(ctx context.Context, webhookNotificationReq webhookclient.WebhookExtRequest) (*webhook.Response, error)

SendNotification provides a mock function with given fields: ctx, webhookNotificationReq

type RuntimeContextConverter

type RuntimeContextConverter struct {
	mock.Mock
}

RuntimeContextConverter is an autogenerated mock type for the runtimeContextConverter type

func NewRuntimeContextConverter

func NewRuntimeContextConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeContextConverter

NewRuntimeContextConverter creates a new instance of RuntimeContextConverter. 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 (*RuntimeContextConverter) ToGraphQL

ToGraphQL provides a mock function with given fields: in

type RuntimeContextRepo

type RuntimeContextRepo struct {
	mock.Mock
}

RuntimeContextRepo is an autogenerated mock type for the runtimeContextRepo type

func NewRuntimeContextRepo

func NewRuntimeContextRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeContextRepo

NewRuntimeContextRepo creates a new instance of RuntimeContextRepo. 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 (*RuntimeContextRepo) ListByIDs

func (_m *RuntimeContextRepo) ListByIDs(ctx context.Context, tenant string, ids []string) ([]*model.RuntimeContext, error)

ListByIDs provides a mock function with given fields: ctx, tenant, ids

type RuntimeContextRepository

type RuntimeContextRepository struct {
	mock.Mock
}

RuntimeContextRepository is an autogenerated mock type for the runtimeContextRepository type

func NewRuntimeContextRepository

func NewRuntimeContextRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeContextRepository

NewRuntimeContextRepository creates a new instance of RuntimeContextRepository. 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 (*RuntimeContextRepository) GetByID

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

func (*RuntimeContextRepository) ListByScenarios

func (_m *RuntimeContextRepository) ListByScenarios(ctx context.Context, tenant string, scenarios []string) ([]*model.RuntimeContext, error)

ListByScenarios provides a mock function with given fields: ctx, tenant, scenarios

type RuntimeConverter

type RuntimeConverter struct {
	mock.Mock
}

RuntimeConverter is an autogenerated mock type for the runtimeConverter type

func NewRuntimeConverter

func NewRuntimeConverter(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeConverter

NewRuntimeConverter creates a new instance of RuntimeConverter. 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 (*RuntimeConverter) ToGraphQL

func (_m *RuntimeConverter) ToGraphQL(in *model.Runtime) *graphql.Runtime

ToGraphQL provides a mock function with given fields: in

type RuntimeRepo

type RuntimeRepo struct {
	mock.Mock
}

RuntimeRepo is an autogenerated mock type for the runtimeRepo type

func NewRuntimeRepo

func NewRuntimeRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeRepo

NewRuntimeRepo creates a new instance of RuntimeRepo. 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 (*RuntimeRepo) ListByIDs

func (_m *RuntimeRepo) ListByIDs(ctx context.Context, tenant string, ids []string) ([]*model.Runtime, error)

ListByIDs provides a mock function with given fields: ctx, tenant, ids

type RuntimeRepository

type RuntimeRepository struct {
	mock.Mock
}

RuntimeRepository is an autogenerated mock type for the runtimeRepository type

func NewRuntimeRepository

func NewRuntimeRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuntimeRepository

NewRuntimeRepository creates a new instance of RuntimeRepository. 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 (*RuntimeRepository) ListByScenarios

func (_m *RuntimeRepository) ListByScenarios(ctx context.Context, tenant string, scenarios []string) ([]*model.Runtime, error)

ListByScenarios provides a mock function with given fields: ctx, tenant, scenarios

type StatusService

type StatusService struct {
	mock.Mock
}

StatusService is an autogenerated mock type for the statusService type

func NewStatusService

func NewStatusService(t interface {
	mock.TestingT
	Cleanup(func())
}) *StatusService

NewStatusService creates a new instance of StatusService. 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 (*StatusService) DeleteWithConstraints

func (_m *StatusService) DeleteWithConstraints(ctx context.Context, id string, notificationStatusReport *statusreport.NotificationStatusReport) error

DeleteWithConstraints provides a mock function with given fields: ctx, id, notificationStatusReport

func (*StatusService) UpdateWithConstraints

func (_m *StatusService) UpdateWithConstraints(ctx context.Context, notificationStatusReport *statusreport.NotificationStatusReport, fa *model.FormationAssignment, operation model.FormationOperation) error

UpdateWithConstraints provides a mock function with given fields: ctx, notificationStatusReport, fa, operation

type TemplateInput

type TemplateInput struct {
	mock.Mock
}

TemplateInput is an autogenerated mock type for the templateInput type

func NewTemplateInput

func NewTemplateInput(t interface {
	mock.TestingT
	Cleanup(func())
}) *TemplateInput

NewTemplateInput creates a new instance of TemplateInput. 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 (*TemplateInput) Clone

Clone provides a mock function with given fields:

func (*TemplateInput) GetAssignment

func (_m *TemplateInput) GetAssignment() *model.FormationAssignment

GetAssignment provides a mock function with given fields:

func (*TemplateInput) GetParticipantsIDs

func (_m *TemplateInput) GetParticipantsIDs() []string

GetParticipantsIDs provides a mock function with given fields:

func (*TemplateInput) GetReverseAssignment

func (_m *TemplateInput) GetReverseAssignment() *model.FormationAssignment

GetReverseAssignment provides a mock function with given fields:

func (*TemplateInput) ParseHeadersTemplate

func (_m *TemplateInput) ParseHeadersTemplate(tmpl *string) (http.Header, error)

ParseHeadersTemplate provides a mock function with given fields: tmpl

func (*TemplateInput) ParseInputTemplate

func (_m *TemplateInput) ParseInputTemplate(tmpl *string) ([]byte, error)

ParseInputTemplate provides a mock function with given fields: tmpl

func (*TemplateInput) ParseURLTemplate

func (_m *TemplateInput) ParseURLTemplate(tmpl *string) (*webhook.URL, error)

ParseURLTemplate provides a mock function with given fields: tmpl

func (*TemplateInput) SetAssignment

func (_m *TemplateInput) SetAssignment(_a0 *model.FormationAssignment)

SetAssignment provides a mock function with given fields: _a0

func (*TemplateInput) SetReverseAssignment

func (_m *TemplateInput) SetReverseAssignment(_a0 *model.FormationAssignment)

SetReverseAssignment provides a mock function with given fields: _a0

type TenantRepository

type TenantRepository struct {
	mock.Mock
}

TenantRepository is an autogenerated mock type for the tenantRepository type

func NewTenantRepository

func NewTenantRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *TenantRepository

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

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

func (*TenantRepository) GetParentsRecursivelyByExternalTenant

func (_m *TenantRepository) GetParentsRecursivelyByExternalTenant(ctx context.Context, externalTenant string) ([]*model.BusinessTenantMapping, error)

GetParentsRecursivelyByExternalTenant provides a mock function with given fields: ctx, externalTenant

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

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

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

Jump to

Keyboard shortcuts

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