mocknotify

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	mock.Mock
}

Consumer is an autogenerated mock type for the Consumer type

func NewConsumer

func NewConsumer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Consumer

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

func (_m *Consumer) EXPECT() *Consumer_Expecter

func (*Consumer) Start

func (_mock *Consumer) Start(ctx context.Context) error

Start provides a mock function for the type Consumer

func (*Consumer) Stop

func (_mock *Consumer) Stop(ctx context.Context) error

Stop provides a mock function for the type Consumer

type Consumer_Expecter

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

func (*Consumer_Expecter) Start

func (_e *Consumer_Expecter) Start(ctx interface{}) *Consumer_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

func (*Consumer_Expecter) Stop

func (_e *Consumer_Expecter) Stop(ctx interface{}) *Consumer_Stop_Call

Stop is a helper method to define mock.On call

  • ctx context.Context

type Consumer_Start_Call

type Consumer_Start_Call struct {
	*mock.Call
}

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

func (*Consumer_Start_Call) Return

func (*Consumer_Start_Call) Run

func (_c *Consumer_Start_Call) Run(run func(ctx context.Context)) *Consumer_Start_Call

func (*Consumer_Start_Call) RunAndReturn

func (_c *Consumer_Start_Call) RunAndReturn(run func(ctx context.Context) error) *Consumer_Start_Call

type Consumer_Stop_Call

type Consumer_Stop_Call struct {
	*mock.Call
}

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

func (*Consumer_Stop_Call) Return

func (_c *Consumer_Stop_Call) Return(err error) *Consumer_Stop_Call

func (*Consumer_Stop_Call) Run

func (_c *Consumer_Stop_Call) Run(run func(ctx context.Context)) *Consumer_Stop_Call

func (*Consumer_Stop_Call) RunAndReturn

func (_c *Consumer_Stop_Call) RunAndReturn(run func(ctx context.Context) error) *Consumer_Stop_Call

type Producer

type Producer struct {
	mock.Mock
}

Producer is an autogenerated mock type for the Producer type

func NewProducer

func NewProducer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Producer

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

func (_m *Producer) EXPECT() *Producer_Expecter

func (*Producer) Start

func (_mock *Producer) Start(ctx context.Context) error

Start provides a mock function for the type Producer

func (*Producer) Stop

func (_mock *Producer) Stop(ctx context.Context) error

Stop provides a mock function for the type Producer

type Producer_Expecter

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

func (*Producer_Expecter) Start

func (_e *Producer_Expecter) Start(ctx interface{}) *Producer_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

func (*Producer_Expecter) Stop

func (_e *Producer_Expecter) Stop(ctx interface{}) *Producer_Stop_Call

Stop is a helper method to define mock.On call

  • ctx context.Context

type Producer_Start_Call

type Producer_Start_Call struct {
	*mock.Call
}

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

func (*Producer_Start_Call) Return

func (*Producer_Start_Call) Run

func (_c *Producer_Start_Call) Run(run func(ctx context.Context)) *Producer_Start_Call

func (*Producer_Start_Call) RunAndReturn

func (_c *Producer_Start_Call) RunAndReturn(run func(ctx context.Context) error) *Producer_Start_Call

type Producer_Stop_Call

type Producer_Stop_Call struct {
	*mock.Call
}

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

func (*Producer_Stop_Call) Return

func (_c *Producer_Stop_Call) Return(err error) *Producer_Stop_Call

func (*Producer_Stop_Call) Run

func (_c *Producer_Stop_Call) Run(run func(ctx context.Context)) *Producer_Stop_Call

func (*Producer_Stop_Call) RunAndReturn

func (_c *Producer_Stop_Call) RunAndReturn(run func(ctx context.Context) error) *Producer_Stop_Call

Jump to

Keyboard shortcuts

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