mocks

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: Apache-2.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 Publisher

type Publisher struct {
	mock.Mock
}

Publisher is an autogenerated mock type for the Publisher type

func NewPublisher added in v1.15.0

func NewPublisher(t interface {
	mock.TestingT
	Cleanup(func())
}) *Publisher

NewPublisher creates a new instance of Publisher. 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 (*Publisher) EXPECT added in v1.15.0

func (_m *Publisher) EXPECT() *Publisher_Expecter

func (*Publisher) Publish

func (_m *Publisher) Publish(ctx context.Context, notificationType string, msg protoiface.MessageV1) error

Publish provides a mock function with given fields: ctx, notificationType, msg

type Publisher_Expecter added in v1.15.0

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

func (*Publisher_Expecter) Publish added in v1.15.0

func (_e *Publisher_Expecter) Publish(ctx interface{}, notificationType interface{}, msg interface{}) *Publisher_Publish_Call

Publish is a helper method to define mock.On call

  • ctx context.Context
  • notificationType string
  • msg protoiface.MessageV1

type Publisher_Publish_Call added in v1.15.0

type Publisher_Publish_Call struct {
	*mock.Call
}

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

func (*Publisher_Publish_Call) Return added in v1.15.0

func (*Publisher_Publish_Call) Run added in v1.15.0

func (_c *Publisher_Publish_Call) Run(run func(ctx context.Context, notificationType string, msg protoiface.MessageV1)) *Publisher_Publish_Call

func (*Publisher_Publish_Call) RunAndReturn added in v1.15.0

type Sender

type Sender struct {
	mock.Mock
}

Sender is an autogenerated mock type for the Sender type

func NewSender added in v1.15.0

func NewSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *Sender

NewSender creates a new instance of Sender. 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 (*Sender) EXPECT added in v1.15.0

func (_m *Sender) EXPECT() *Sender_Expecter

func (*Sender) Send

func (_m *Sender) Send(ctx context.Context, notificationType string, _a2 event.Event) error

Send provides a mock function with given fields: ctx, notificationType, _a2

type Sender_Expecter added in v1.15.0

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

func (*Sender_Expecter) Send added in v1.15.0

func (_e *Sender_Expecter) Send(ctx interface{}, notificationType interface{}, _a2 interface{}) *Sender_Send_Call

Send is a helper method to define mock.On call

  • ctx context.Context
  • notificationType string
  • _a2 event.Event

type Sender_Send_Call added in v1.15.0

type Sender_Send_Call struct {
	*mock.Call
}

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

func (*Sender_Send_Call) Return added in v1.15.0

func (_c *Sender_Send_Call) Return(_a0 error) *Sender_Send_Call

func (*Sender_Send_Call) Run added in v1.15.0

func (_c *Sender_Send_Call) Run(run func(ctx context.Context, notificationType string, _a2 event.Event)) *Sender_Send_Call

func (*Sender_Send_Call) RunAndReturn added in v1.15.0

func (_c *Sender_Send_Call) RunAndReturn(run func(context.Context, string, event.Event) error) *Sender_Send_Call

Jump to

Keyboard shortcuts

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