mocks

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 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 LogService

type LogService struct {
	mock.Mock
}

LogService is an autogenerated mock type for the LogService type

func NewLogService

func NewLogService(t interface {
	mock.TestingT
	Cleanup(func())
}) *LogService

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

func (_m *LogService) EXPECT() *LogService_Expecter

func (*LogService) ListSubscriptionIDsBySilenceID

func (_m *LogService) ListSubscriptionIDsBySilenceID(ctx context.Context, silenceID string) ([]int64, error)

ListSubscriptionIDsBySilenceID provides a mock function with given fields: ctx, silenceID

type LogService_Expecter

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

func (*LogService_Expecter) ListSubscriptionIDsBySilenceID

func (_e *LogService_Expecter) ListSubscriptionIDsBySilenceID(ctx interface{}, silenceID interface{}) *LogService_ListSubscriptionIDsBySilenceID_Call

ListSubscriptionIDsBySilenceID is a helper method to define mock.On call

  • ctx context.Context
  • silenceID string

type LogService_ListSubscriptionIDsBySilenceID_Call

type LogService_ListSubscriptionIDsBySilenceID_Call struct {
	*mock.Call
}

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

func (*LogService_ListSubscriptionIDsBySilenceID_Call) Return

func (*LogService_ListSubscriptionIDsBySilenceID_Call) Run

func (*LogService_ListSubscriptionIDsBySilenceID_Call) RunAndReturn added in v0.6.1

type NamespaceService

type NamespaceService struct {
	mock.Mock
}

NamespaceService is an autogenerated mock type for the NamespaceService type

func NewNamespaceService

func NewNamespaceService(t interface {
	mock.TestingT
	Cleanup(func())
}) *NamespaceService

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

func (_m *NamespaceService) Create(_a0 context.Context, _a1 *namespace.Namespace) error

Create provides a mock function with given fields: _a0, _a1

func (*NamespaceService) Delete

func (_m *NamespaceService) Delete(_a0 context.Context, _a1 uint64) error

Delete provides a mock function with given fields: _a0, _a1

func (*NamespaceService) EXPECT

func (*NamespaceService) Get

Get provides a mock function with given fields: _a0, _a1

func (*NamespaceService) List

List provides a mock function with given fields: _a0

func (*NamespaceService) Update

func (_m *NamespaceService) Update(_a0 context.Context, _a1 *namespace.Namespace) error

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

type NamespaceService_Create_Call

type NamespaceService_Create_Call struct {
	*mock.Call
}

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

func (*NamespaceService_Create_Call) Return

func (*NamespaceService_Create_Call) Run

func (*NamespaceService_Create_Call) RunAndReturn added in v0.6.1

type NamespaceService_Delete_Call

type NamespaceService_Delete_Call struct {
	*mock.Call
}

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

func (*NamespaceService_Delete_Call) Return

func (*NamespaceService_Delete_Call) Run

func (*NamespaceService_Delete_Call) RunAndReturn added in v0.6.1

type NamespaceService_Expecter

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

func (*NamespaceService_Expecter) Create

func (_e *NamespaceService_Expecter) Create(_a0 interface{}, _a1 interface{}) *NamespaceService_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.Namespace

func (*NamespaceService_Expecter) Delete

func (_e *NamespaceService_Expecter) Delete(_a0 interface{}, _a1 interface{}) *NamespaceService_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*NamespaceService_Expecter) Get

func (_e *NamespaceService_Expecter) Get(_a0 interface{}, _a1 interface{}) *NamespaceService_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*NamespaceService_Expecter) List

func (_e *NamespaceService_Expecter) List(_a0 interface{}) *NamespaceService_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context

func (*NamespaceService_Expecter) Update

func (_e *NamespaceService_Expecter) Update(_a0 interface{}, _a1 interface{}) *NamespaceService_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *namespace.Namespace

type NamespaceService_Get_Call

type NamespaceService_Get_Call struct {
	*mock.Call
}

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

func (*NamespaceService_Get_Call) Return

func (*NamespaceService_Get_Call) Run

func (*NamespaceService_Get_Call) RunAndReturn added in v0.6.1

type NamespaceService_List_Call

type NamespaceService_List_Call struct {
	*mock.Call
}

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

func (*NamespaceService_List_Call) Return

func (*NamespaceService_List_Call) Run

func (*NamespaceService_List_Call) RunAndReturn added in v0.6.1

type NamespaceService_Update_Call

type NamespaceService_Update_Call struct {
	*mock.Call
}

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

func (*NamespaceService_Update_Call) Return

func (*NamespaceService_Update_Call) Run

func (*NamespaceService_Update_Call) RunAndReturn added in v0.6.1

type ReceiverService

type ReceiverService struct {
	mock.Mock
}

ReceiverService is an autogenerated mock type for the ReceiverService type

func NewReceiverService

func NewReceiverService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReceiverService

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

func (*ReceiverService) List

List provides a mock function with given fields: ctx, flt

type ReceiverService_Expecter

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

func (*ReceiverService_Expecter) List

func (_e *ReceiverService_Expecter) List(ctx interface{}, flt interface{}) *ReceiverService_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • flt receiver.Filter

type ReceiverService_List_Call

type ReceiverService_List_Call struct {
	*mock.Call
}

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

func (*ReceiverService_List_Call) Return

func (*ReceiverService_List_Call) Run

func (*ReceiverService_List_Call) RunAndReturn added in v0.6.1

type Repository added in v0.6.12

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository added in v0.6.12

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) Create added in v0.6.12

func (_m *Repository) Create(_a0 context.Context, _a1 *subscription.Subscription) error

Create provides a mock function with given fields: _a0, _a1

func (*Repository) Delete added in v0.6.12

func (_m *Repository) Delete(_a0 context.Context, _a1 uint64) error

Delete provides a mock function with given fields: _a0, _a1

func (*Repository) EXPECT added in v0.6.12

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) Get added in v0.6.12

Get provides a mock function with given fields: _a0, _a1

func (*Repository) List added in v0.6.12

List provides a mock function with given fields: _a0, _a1

func (*Repository) Update added in v0.6.12

func (_m *Repository) Update(_a0 context.Context, _a1 *subscription.Subscription) error

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

type Repository_Create_Call added in v0.6.12

type Repository_Create_Call struct {
	*mock.Call
}

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

func (*Repository_Create_Call) Return added in v0.6.12

func (*Repository_Create_Call) Run added in v0.6.12

func (*Repository_Create_Call) RunAndReturn added in v0.6.12

type Repository_Delete_Call added in v0.6.12

type Repository_Delete_Call struct {
	*mock.Call
}

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

func (*Repository_Delete_Call) Return added in v0.6.12

func (*Repository_Delete_Call) Run added in v0.6.12

func (*Repository_Delete_Call) RunAndReturn added in v0.6.12

type Repository_Expecter added in v0.6.12

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

func (*Repository_Expecter) Create added in v0.6.12

func (_e *Repository_Expecter) Create(_a0 interface{}, _a1 interface{}) *Repository_Create_Call

Create is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *subscription.Subscription

func (*Repository_Expecter) Delete added in v0.6.12

func (_e *Repository_Expecter) Delete(_a0 interface{}, _a1 interface{}) *Repository_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*Repository_Expecter) Get added in v0.6.12

func (_e *Repository_Expecter) Get(_a0 interface{}, _a1 interface{}) *Repository_Get_Call

Get is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 uint64

func (*Repository_Expecter) List added in v0.6.12

func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call

List is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 subscription.Filter

func (*Repository_Expecter) Update added in v0.6.12

func (_e *Repository_Expecter) Update(_a0 interface{}, _a1 interface{}) *Repository_Update_Call

Update is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *subscription.Subscription

type Repository_Get_Call added in v0.6.12

type Repository_Get_Call struct {
	*mock.Call
}

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

func (*Repository_Get_Call) Return added in v0.6.12

func (*Repository_Get_Call) Run added in v0.6.12

func (_c *Repository_Get_Call) Run(run func(_a0 context.Context, _a1 uint64)) *Repository_Get_Call

func (*Repository_Get_Call) RunAndReturn added in v0.6.12

type Repository_List_Call added in v0.6.12

type Repository_List_Call struct {
	*mock.Call
}

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

func (*Repository_List_Call) Return added in v0.6.12

func (*Repository_List_Call) Run added in v0.6.12

func (*Repository_List_Call) RunAndReturn added in v0.6.12

type Repository_Update_Call added in v0.6.12

type Repository_Update_Call struct {
	*mock.Call
}

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

func (*Repository_Update_Call) Return added in v0.6.12

func (*Repository_Update_Call) Run added in v0.6.12

func (*Repository_Update_Call) RunAndReturn added in v0.6.12

Jump to

Keyboard shortcuts

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