Documentation
¶
Index ¶
- type WebhookRepositoryMock
- func (_m *WebhookRepositoryMock) Create(ctx context.Context, input *models.WebhookCreateInput) (*ent.Webhook, error)
- func (_m *WebhookRepositoryMock) Delete(ctx context.Context, id uuid.UUID) error
- func (_m *WebhookRepositoryMock) EXPECT() *WebhookRepositoryMock_Expecter
- func (_m *WebhookRepositoryMock) GetByID(ctx context.Context, id uuid.UUID) (*ent.Webhook, error)
- func (_m *WebhookRepositoryMock) GetByProject(ctx context.Context, projectID uuid.UUID) ([]*ent.Webhook, error)
- func (_m *WebhookRepositoryMock) GetByTeam(ctx context.Context, teamID uuid.UUID) ([]*ent.Webhook, error)
- func (_m *WebhookRepositoryMock) GetWebhooksForEvent(ctx context.Context, event schema.WebhookEvent) ([]*ent.Webhook, error)
- func (_m *WebhookRepositoryMock) Update(ctx context.Context, input *models.WebhookUpdateInput) (*ent.Webhook, error)
- type WebhookRepositoryMock_Create_Call
- func (_c *WebhookRepositoryMock_Create_Call) Return(_a0 *ent.Webhook, _a1 error) *WebhookRepositoryMock_Create_Call
- func (_c *WebhookRepositoryMock_Create_Call) Run(run func(ctx context.Context, input *models.WebhookCreateInput)) *WebhookRepositoryMock_Create_Call
- func (_c *WebhookRepositoryMock_Create_Call) RunAndReturn(run func(context.Context, *models.WebhookCreateInput) (*ent.Webhook, error)) *WebhookRepositoryMock_Create_Call
- type WebhookRepositoryMock_Delete_Call
- func (_c *WebhookRepositoryMock_Delete_Call) Return(_a0 error) *WebhookRepositoryMock_Delete_Call
- func (_c *WebhookRepositoryMock_Delete_Call) Run(run func(ctx context.Context, id uuid.UUID)) *WebhookRepositoryMock_Delete_Call
- func (_c *WebhookRepositoryMock_Delete_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *WebhookRepositoryMock_Delete_Call
- type WebhookRepositoryMock_Expecter
- func (_e *WebhookRepositoryMock_Expecter) Create(ctx interface{}, input interface{}) *WebhookRepositoryMock_Create_Call
- func (_e *WebhookRepositoryMock_Expecter) Delete(ctx interface{}, id interface{}) *WebhookRepositoryMock_Delete_Call
- func (_e *WebhookRepositoryMock_Expecter) GetByID(ctx interface{}, id interface{}) *WebhookRepositoryMock_GetByID_Call
- func (_e *WebhookRepositoryMock_Expecter) GetByProject(ctx interface{}, projectID interface{}) *WebhookRepositoryMock_GetByProject_Call
- func (_e *WebhookRepositoryMock_Expecter) GetByTeam(ctx interface{}, teamID interface{}) *WebhookRepositoryMock_GetByTeam_Call
- func (_e *WebhookRepositoryMock_Expecter) GetWebhooksForEvent(ctx interface{}, event interface{}) *WebhookRepositoryMock_GetWebhooksForEvent_Call
- func (_e *WebhookRepositoryMock_Expecter) Update(ctx interface{}, input interface{}) *WebhookRepositoryMock_Update_Call
- type WebhookRepositoryMock_GetByID_Call
- func (_c *WebhookRepositoryMock_GetByID_Call) Return(_a0 *ent.Webhook, _a1 error) *WebhookRepositoryMock_GetByID_Call
- func (_c *WebhookRepositoryMock_GetByID_Call) Run(run func(ctx context.Context, id uuid.UUID)) *WebhookRepositoryMock_GetByID_Call
- func (_c *WebhookRepositoryMock_GetByID_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*ent.Webhook, error)) *WebhookRepositoryMock_GetByID_Call
- type WebhookRepositoryMock_GetByProject_Call
- func (_c *WebhookRepositoryMock_GetByProject_Call) Return(_a0 []*ent.Webhook, _a1 error) *WebhookRepositoryMock_GetByProject_Call
- func (_c *WebhookRepositoryMock_GetByProject_Call) Run(run func(ctx context.Context, projectID uuid.UUID)) *WebhookRepositoryMock_GetByProject_Call
- func (_c *WebhookRepositoryMock_GetByProject_Call) RunAndReturn(run func(context.Context, uuid.UUID) ([]*ent.Webhook, error)) *WebhookRepositoryMock_GetByProject_Call
- type WebhookRepositoryMock_GetByTeam_Call
- func (_c *WebhookRepositoryMock_GetByTeam_Call) Return(_a0 []*ent.Webhook, _a1 error) *WebhookRepositoryMock_GetByTeam_Call
- func (_c *WebhookRepositoryMock_GetByTeam_Call) Run(run func(ctx context.Context, teamID uuid.UUID)) *WebhookRepositoryMock_GetByTeam_Call
- func (_c *WebhookRepositoryMock_GetByTeam_Call) RunAndReturn(run func(context.Context, uuid.UUID) ([]*ent.Webhook, error)) *WebhookRepositoryMock_GetByTeam_Call
- type WebhookRepositoryMock_GetWebhooksForEvent_Call
- func (_c *WebhookRepositoryMock_GetWebhooksForEvent_Call) Return(_a0 []*ent.Webhook, _a1 error) *WebhookRepositoryMock_GetWebhooksForEvent_Call
- func (_c *WebhookRepositoryMock_GetWebhooksForEvent_Call) Run(run func(ctx context.Context, event schema.WebhookEvent)) *WebhookRepositoryMock_GetWebhooksForEvent_Call
- func (_c *WebhookRepositoryMock_GetWebhooksForEvent_Call) RunAndReturn(run func(context.Context, schema.WebhookEvent) ([]*ent.Webhook, error)) *WebhookRepositoryMock_GetWebhooksForEvent_Call
- type WebhookRepositoryMock_Update_Call
- func (_c *WebhookRepositoryMock_Update_Call) Return(_a0 *ent.Webhook, _a1 error) *WebhookRepositoryMock_Update_Call
- func (_c *WebhookRepositoryMock_Update_Call) Run(run func(ctx context.Context, input *models.WebhookUpdateInput)) *WebhookRepositoryMock_Update_Call
- func (_c *WebhookRepositoryMock_Update_Call) RunAndReturn(run func(context.Context, *models.WebhookUpdateInput) (*ent.Webhook, error)) *WebhookRepositoryMock_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookRepositoryMock ¶
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 ¶
func (_m *WebhookRepositoryMock) Create(ctx context.Context, input *models.WebhookCreateInput) (*ent.Webhook, error)
Create provides a mock function with given fields: ctx, input
func (*WebhookRepositoryMock) EXPECT ¶
func (_m *WebhookRepositoryMock) EXPECT() *WebhookRepositoryMock_Expecter
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 ¶
func (_m *WebhookRepositoryMock) Update(ctx context.Context, input *models.WebhookUpdateInput) (*ent.Webhook, error)
Update provides a mock function with given fields: ctx, input
type WebhookRepositoryMock_Create_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 (_c *WebhookRepositoryMock_Create_Call) Return(_a0 *ent.Webhook, _a1 error) *WebhookRepositoryMock_Create_Call
func (*WebhookRepositoryMock_Create_Call) Run ¶
func (_c *WebhookRepositoryMock_Create_Call) Run(run func(ctx context.Context, input *models.WebhookCreateInput)) *WebhookRepositoryMock_Create_Call
func (*WebhookRepositoryMock_Create_Call) RunAndReturn ¶
func (_c *WebhookRepositoryMock_Create_Call) RunAndReturn(run func(context.Context, *models.WebhookCreateInput) (*ent.Webhook, error)) *WebhookRepositoryMock_Create_Call
type WebhookRepositoryMock_Delete_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 (_c *WebhookRepositoryMock_Delete_Call) Return(_a0 error) *WebhookRepositoryMock_Delete_Call
func (*WebhookRepositoryMock_Delete_Call) Run ¶
func (_c *WebhookRepositoryMock_Delete_Call) Run(run func(ctx context.Context, id uuid.UUID)) *WebhookRepositoryMock_Delete_Call
func (*WebhookRepositoryMock_Delete_Call) RunAndReturn ¶
func (_c *WebhookRepositoryMock_Delete_Call) RunAndReturn(run func(context.Context, uuid.UUID) error) *WebhookRepositoryMock_Delete_Call
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 ¶
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 (_c *WebhookRepositoryMock_GetByID_Call) Return(_a0 *ent.Webhook, _a1 error) *WebhookRepositoryMock_GetByID_Call
func (*WebhookRepositoryMock_GetByID_Call) Run ¶
func (_c *WebhookRepositoryMock_GetByID_Call) Run(run func(ctx context.Context, id uuid.UUID)) *WebhookRepositoryMock_GetByID_Call
func (*WebhookRepositoryMock_GetByID_Call) RunAndReturn ¶
func (_c *WebhookRepositoryMock_GetByID_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*ent.Webhook, error)) *WebhookRepositoryMock_GetByID_Call
type WebhookRepositoryMock_GetByProject_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 (_c *WebhookRepositoryMock_GetByProject_Call) Return(_a0 []*ent.Webhook, _a1 error) *WebhookRepositoryMock_GetByProject_Call
func (*WebhookRepositoryMock_GetByProject_Call) Run ¶
func (_c *WebhookRepositoryMock_GetByProject_Call) Run(run func(ctx context.Context, projectID uuid.UUID)) *WebhookRepositoryMock_GetByProject_Call
func (*WebhookRepositoryMock_GetByProject_Call) RunAndReturn ¶
func (_c *WebhookRepositoryMock_GetByProject_Call) RunAndReturn(run func(context.Context, uuid.UUID) ([]*ent.Webhook, error)) *WebhookRepositoryMock_GetByProject_Call
type WebhookRepositoryMock_GetByTeam_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 (_c *WebhookRepositoryMock_GetByTeam_Call) Return(_a0 []*ent.Webhook, _a1 error) *WebhookRepositoryMock_GetByTeam_Call
func (*WebhookRepositoryMock_GetByTeam_Call) Run ¶
func (_c *WebhookRepositoryMock_GetByTeam_Call) Run(run func(ctx context.Context, teamID uuid.UUID)) *WebhookRepositoryMock_GetByTeam_Call
func (*WebhookRepositoryMock_GetByTeam_Call) RunAndReturn ¶
func (_c *WebhookRepositoryMock_GetByTeam_Call) RunAndReturn(run func(context.Context, uuid.UUID) ([]*ent.Webhook, error)) *WebhookRepositoryMock_GetByTeam_Call
type WebhookRepositoryMock_GetWebhooksForEvent_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 (_c *WebhookRepositoryMock_GetWebhooksForEvent_Call) Return(_a0 []*ent.Webhook, _a1 error) *WebhookRepositoryMock_GetWebhooksForEvent_Call
func (*WebhookRepositoryMock_GetWebhooksForEvent_Call) Run ¶
func (_c *WebhookRepositoryMock_GetWebhooksForEvent_Call) Run(run func(ctx context.Context, event schema.WebhookEvent)) *WebhookRepositoryMock_GetWebhooksForEvent_Call
func (*WebhookRepositoryMock_GetWebhooksForEvent_Call) RunAndReturn ¶
func (_c *WebhookRepositoryMock_GetWebhooksForEvent_Call) RunAndReturn(run func(context.Context, schema.WebhookEvent) ([]*ent.Webhook, error)) *WebhookRepositoryMock_GetWebhooksForEvent_Call
type WebhookRepositoryMock_Update_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 (_c *WebhookRepositoryMock_Update_Call) Return(_a0 *ent.Webhook, _a1 error) *WebhookRepositoryMock_Update_Call
func (*WebhookRepositoryMock_Update_Call) Run ¶
func (_c *WebhookRepositoryMock_Update_Call) Run(run func(ctx context.Context, input *models.WebhookUpdateInput)) *WebhookRepositoryMock_Update_Call
func (*WebhookRepositoryMock_Update_Call) RunAndReturn ¶
func (_c *WebhookRepositoryMock_Update_Call) RunAndReturn(run func(context.Context, *models.WebhookUpdateInput) (*ent.Webhook, error)) *WebhookRepositoryMock_Update_Call