mocks_repository_webhook

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookRepositoryMock

type WebhookRepositoryMock struct {
	mock.Mock
}

WebhookRepositoryMock is an autogenerated mock type for the WebhookRepositoryInterface type

func NewWebhookRepositoryMock

func NewWebhookRepositoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebhookRepositoryMock

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

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

func (*WebhookRepositoryMock) Delete

func (_m *WebhookRepositoryMock) Delete(ctx context.Context, id uuid.UUID) error

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

func (*WebhookRepositoryMock) EXPECT

func (*WebhookRepositoryMock) GetByID

func (_m *WebhookRepositoryMock) GetByID(ctx context.Context, id uuid.UUID) (*ent.Webhook, error)

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

func (*WebhookRepositoryMock) GetByProject

func (_m *WebhookRepositoryMock) GetByProject(ctx context.Context, projectID uuid.UUID) ([]*ent.Webhook, error)

GetByProject provides a mock function with given fields: ctx, projectID

func (*WebhookRepositoryMock) GetByTeam

func (_m *WebhookRepositoryMock) GetByTeam(ctx context.Context, teamID uuid.UUID) ([]*ent.Webhook, error)

GetByTeam provides a mock function with given fields: ctx, teamID

func (*WebhookRepositoryMock) GetWebhooksForEvent

func (_m *WebhookRepositoryMock) GetWebhooksForEvent(ctx context.Context, event schema.WebhookEvent) ([]*ent.Webhook, error)

GetWebhooksForEvent provides a mock function with given fields: ctx, event

func (*WebhookRepositoryMock) Update

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

type WebhookRepositoryMock_Create_Call

type WebhookRepositoryMock_Create_Call struct {
	*mock.Call
}

WebhookRepositoryMock_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*WebhookRepositoryMock_Create_Call) Return

func (*WebhookRepositoryMock_Create_Call) Run

func (*WebhookRepositoryMock_Create_Call) RunAndReturn

type WebhookRepositoryMock_Delete_Call

type WebhookRepositoryMock_Delete_Call struct {
	*mock.Call
}

WebhookRepositoryMock_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*WebhookRepositoryMock_Delete_Call) Return

func (*WebhookRepositoryMock_Delete_Call) Run

func (*WebhookRepositoryMock_Delete_Call) RunAndReturn

type WebhookRepositoryMock_Expecter

type WebhookRepositoryMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*WebhookRepositoryMock_Expecter) Create

func (_e *WebhookRepositoryMock_Expecter) Create(ctx interface{}, input interface{}) *WebhookRepositoryMock_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • input *models.WebhookCreateInput

func (*WebhookRepositoryMock_Expecter) Delete

func (_e *WebhookRepositoryMock_Expecter) Delete(ctx interface{}, id interface{}) *WebhookRepositoryMock_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*WebhookRepositoryMock_Expecter) GetByID

func (_e *WebhookRepositoryMock_Expecter) GetByID(ctx interface{}, id interface{}) *WebhookRepositoryMock_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*WebhookRepositoryMock_Expecter) GetByProject

func (_e *WebhookRepositoryMock_Expecter) GetByProject(ctx interface{}, projectID interface{}) *WebhookRepositoryMock_GetByProject_Call

GetByProject is a helper method to define mock.On call

  • ctx context.Context
  • projectID uuid.UUID

func (*WebhookRepositoryMock_Expecter) GetByTeam

func (_e *WebhookRepositoryMock_Expecter) GetByTeam(ctx interface{}, teamID interface{}) *WebhookRepositoryMock_GetByTeam_Call

GetByTeam is a helper method to define mock.On call

  • ctx context.Context
  • teamID uuid.UUID

func (*WebhookRepositoryMock_Expecter) GetWebhooksForEvent

func (_e *WebhookRepositoryMock_Expecter) GetWebhooksForEvent(ctx interface{}, event interface{}) *WebhookRepositoryMock_GetWebhooksForEvent_Call

GetWebhooksForEvent is a helper method to define mock.On call

  • ctx context.Context
  • event schema.WebhookEvent

func (*WebhookRepositoryMock_Expecter) Update

func (_e *WebhookRepositoryMock_Expecter) Update(ctx interface{}, input interface{}) *WebhookRepositoryMock_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • input *models.WebhookUpdateInput

type WebhookRepositoryMock_GetByID_Call

type WebhookRepositoryMock_GetByID_Call struct {
	*mock.Call
}

WebhookRepositoryMock_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'

func (*WebhookRepositoryMock_GetByID_Call) Return

func (*WebhookRepositoryMock_GetByID_Call) Run

func (*WebhookRepositoryMock_GetByID_Call) RunAndReturn

type WebhookRepositoryMock_GetByProject_Call

type WebhookRepositoryMock_GetByProject_Call struct {
	*mock.Call
}

WebhookRepositoryMock_GetByProject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByProject'

func (*WebhookRepositoryMock_GetByProject_Call) Return

func (*WebhookRepositoryMock_GetByProject_Call) Run

func (*WebhookRepositoryMock_GetByProject_Call) RunAndReturn

type WebhookRepositoryMock_GetByTeam_Call

type WebhookRepositoryMock_GetByTeam_Call struct {
	*mock.Call
}

WebhookRepositoryMock_GetByTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByTeam'

func (*WebhookRepositoryMock_GetByTeam_Call) Return

func (*WebhookRepositoryMock_GetByTeam_Call) Run

func (*WebhookRepositoryMock_GetByTeam_Call) RunAndReturn

type WebhookRepositoryMock_GetWebhooksForEvent_Call

type WebhookRepositoryMock_GetWebhooksForEvent_Call struct {
	*mock.Call
}

WebhookRepositoryMock_GetWebhooksForEvent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWebhooksForEvent'

func (*WebhookRepositoryMock_GetWebhooksForEvent_Call) Return

func (*WebhookRepositoryMock_GetWebhooksForEvent_Call) Run

func (*WebhookRepositoryMock_GetWebhooksForEvent_Call) RunAndReturn

type WebhookRepositoryMock_Update_Call

type WebhookRepositoryMock_Update_Call struct {
	*mock.Call
}

WebhookRepositoryMock_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*WebhookRepositoryMock_Update_Call) Return

func (*WebhookRepositoryMock_Update_Call) Run

func (*WebhookRepositoryMock_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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