mocks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotificationChannelRepository

type NotificationChannelRepository struct {
	mock.Mock
}

NotificationChannelRepository is an autogenerated mock type for the NotificationChannelRepository type

func NewNotificationChannelRepository

func NewNotificationChannelRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *NotificationChannelRepository

NewNotificationChannelRepository creates a new instance of NotificationChannelRepository. 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 (*NotificationChannelRepository) EXPECT

func (*NotificationChannelRepository) GetNotificationChannelById

func (_mock *NotificationChannelRepository) GetNotificationChannelById(ctx context.Context, id string) (models.NotificationChannel, error)

GetNotificationChannelById provides a mock function for the type NotificationChannelRepository

func (*NotificationChannelRepository) ListNotificationChannelsByType

func (_mock *NotificationChannelRepository) ListNotificationChannelsByType(ctx context.Context, channelType models.ChannelType) ([]models.NotificationChannel, error)

ListNotificationChannelsByType provides a mock function for the type NotificationChannelRepository

type NotificationChannelRepository_Expecter

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

func (*NotificationChannelRepository_Expecter) GetNotificationChannelById

func (_e *NotificationChannelRepository_Expecter) GetNotificationChannelById(ctx interface{}, id interface{}) *NotificationChannelRepository_GetNotificationChannelById_Call

GetNotificationChannelById is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*NotificationChannelRepository_Expecter) ListNotificationChannelsByType

func (_e *NotificationChannelRepository_Expecter) ListNotificationChannelsByType(ctx interface{}, channelType interface{}) *NotificationChannelRepository_ListNotificationChannelsByType_Call

ListNotificationChannelsByType is a helper method to define mock.On call

  • ctx context.Context
  • channelType models.ChannelType

type NotificationChannelRepository_GetNotificationChannelById_Call

type NotificationChannelRepository_GetNotificationChannelById_Call struct {
	*mock.Call
}

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

func (*NotificationChannelRepository_GetNotificationChannelById_Call) Return

func (*NotificationChannelRepository_GetNotificationChannelById_Call) Run

func (*NotificationChannelRepository_GetNotificationChannelById_Call) RunAndReturn

type NotificationChannelRepository_ListNotificationChannelsByType_Call

type NotificationChannelRepository_ListNotificationChannelsByType_Call struct {
	*mock.Call
}

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

func (*NotificationChannelRepository_ListNotificationChannelsByType_Call) Return

func (*NotificationChannelRepository_ListNotificationChannelsByType_Call) Run

func (*NotificationChannelRepository_ListNotificationChannelsByType_Call) RunAndReturn

type OriginRepository

type OriginRepository struct {
	mock.Mock
}

OriginRepository is an autogenerated mock type for the OriginRepository type

func NewOriginRepository

func NewOriginRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *OriginRepository

NewOriginRepository creates a new instance of OriginRepository. 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 (*OriginRepository) EXPECT

func (*OriginRepository) ListOrigins

func (_mock *OriginRepository) ListOrigins(ctx context.Context) ([]entities.Origin, error)

ListOrigins provides a mock function for the type OriginRepository

func (*OriginRepository) UpsertOrigins added in v0.14.0

func (_mock *OriginRepository) UpsertOrigins(ctx context.Context, serviceID string, origins []entities.Origin) error

UpsertOrigins provides a mock function for the type OriginRepository

type OriginRepository_Expecter

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

func (*OriginRepository_Expecter) ListOrigins

func (_e *OriginRepository_Expecter) ListOrigins(ctx interface{}) *OriginRepository_ListOrigins_Call

ListOrigins is a helper method to define mock.On call

  • ctx context.Context

func (*OriginRepository_Expecter) UpsertOrigins added in v0.14.0

func (_e *OriginRepository_Expecter) UpsertOrigins(ctx interface{}, serviceID interface{}, origins interface{}) *OriginRepository_UpsertOrigins_Call

UpsertOrigins is a helper method to define mock.On call

  • ctx context.Context
  • serviceID string
  • origins []entities.Origin

type OriginRepository_ListOrigins_Call

type OriginRepository_ListOrigins_Call struct {
	*mock.Call
}

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

func (*OriginRepository_ListOrigins_Call) Return

func (*OriginRepository_ListOrigins_Call) Run

func (*OriginRepository_ListOrigins_Call) RunAndReturn

type OriginRepository_UpsertOrigins_Call added in v0.14.0

type OriginRepository_UpsertOrigins_Call struct {
	*mock.Call
}

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

func (*OriginRepository_UpsertOrigins_Call) Return added in v0.14.0

func (*OriginRepository_UpsertOrigins_Call) Run added in v0.14.0

func (*OriginRepository_UpsertOrigins_Call) RunAndReturn added in v0.14.0

type RuleRepository

type RuleRepository struct {
	mock.Mock
}

RuleRepository is an autogenerated mock type for the RuleRepository type

func NewRuleRepository

func NewRuleRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *RuleRepository

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

func (_mock *RuleRepository) Create(ctx context.Context, rule models.Rule) (models.Rule, error)

Create provides a mock function for the type RuleRepository

func (*RuleRepository) Delete

func (_mock *RuleRepository) Delete(ctx context.Context, id string) error

Delete provides a mock function for the type RuleRepository

func (*RuleRepository) EXPECT

func (*RuleRepository) Get

func (_mock *RuleRepository) Get(ctx context.Context, id string) (models.Rule, error)

Get provides a mock function for the type RuleRepository

func (*RuleRepository) List

func (_mock *RuleRepository) List(ctx context.Context) ([]models.Rule, error)

List provides a mock function for the type RuleRepository

func (*RuleRepository) Update

func (_mock *RuleRepository) Update(ctx context.Context, id string, rule models.Rule) (models.Rule, error)

Update provides a mock function for the type RuleRepository

type RuleRepository_Create_Call

type RuleRepository_Create_Call struct {
	*mock.Call
}

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

func (*RuleRepository_Create_Call) Return

func (*RuleRepository_Create_Call) Run

func (*RuleRepository_Create_Call) RunAndReturn

type RuleRepository_Delete_Call

type RuleRepository_Delete_Call struct {
	*mock.Call
}

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

func (*RuleRepository_Delete_Call) Return

func (*RuleRepository_Delete_Call) Run

func (*RuleRepository_Delete_Call) RunAndReturn

type RuleRepository_Expecter

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

func (*RuleRepository_Expecter) Create

func (_e *RuleRepository_Expecter) Create(ctx interface{}, rule interface{}) *RuleRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • rule models.Rule

func (*RuleRepository_Expecter) Delete

func (_e *RuleRepository_Expecter) Delete(ctx interface{}, id interface{}) *RuleRepository_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*RuleRepository_Expecter) Get

func (_e *RuleRepository_Expecter) Get(ctx interface{}, id interface{}) *RuleRepository_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*RuleRepository_Expecter) List

func (_e *RuleRepository_Expecter) List(ctx interface{}) *RuleRepository_List_Call

List is a helper method to define mock.On call

  • ctx context.Context

func (*RuleRepository_Expecter) Update

func (_e *RuleRepository_Expecter) Update(ctx interface{}, id interface{}, rule interface{}) *RuleRepository_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • rule models.Rule

type RuleRepository_Get_Call

type RuleRepository_Get_Call struct {
	*mock.Call
}

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

func (*RuleRepository_Get_Call) Return

func (*RuleRepository_Get_Call) Run

func (*RuleRepository_Get_Call) RunAndReturn

func (_c *RuleRepository_Get_Call) RunAndReturn(run func(ctx context.Context, id string) (models.Rule, error)) *RuleRepository_Get_Call

type RuleRepository_List_Call

type RuleRepository_List_Call struct {
	*mock.Call
}

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

func (*RuleRepository_List_Call) Return

func (*RuleRepository_List_Call) Run

func (*RuleRepository_List_Call) RunAndReturn

func (_c *RuleRepository_List_Call) RunAndReturn(run func(ctx context.Context) ([]models.Rule, error)) *RuleRepository_List_Call

type RuleRepository_Update_Call

type RuleRepository_Update_Call struct {
	*mock.Call
}

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

func (*RuleRepository_Update_Call) Return

func (*RuleRepository_Update_Call) Run

func (*RuleRepository_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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