mocks

package
v2.40.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

type Stream struct {
	mock.Mock
}

Stream is an autogenerated mock type for the Stream type

func NewStream

func NewStream(t interface {
	mock.TestingT
	Cleanup(func())
}) *Stream

NewStream creates a new instance of Stream. 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 (*Stream) Consume

func (_m *Stream) Consume(_a0 string, _a1 ...events.ConsumeOption) (<-chan events.Event, error)

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

func (*Stream) EXPECT

func (_m *Stream) EXPECT() *Stream_Expecter

func (*Stream) Publish

func (_m *Stream) Publish(_a0 string, _a1 interface{}, _a2 ...events.PublishOption) error

Publish provides a mock function with given fields: _a0, _a1, _a2

type Stream_Consume_Call

type Stream_Consume_Call struct {
	*mock.Call
}

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

func (*Stream_Consume_Call) Return

func (_c *Stream_Consume_Call) Return(_a0 <-chan events.Event, _a1 error) *Stream_Consume_Call

func (*Stream_Consume_Call) Run

func (_c *Stream_Consume_Call) Run(run func(_a0 string, _a1 ...events.ConsumeOption)) *Stream_Consume_Call

func (*Stream_Consume_Call) RunAndReturn

func (_c *Stream_Consume_Call) RunAndReturn(run func(string, ...events.ConsumeOption) (<-chan events.Event, error)) *Stream_Consume_Call

type Stream_Expecter

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

func (*Stream_Expecter) Consume

func (_e *Stream_Expecter) Consume(_a0 interface{}, _a1 ...interface{}) *Stream_Consume_Call

Consume is a helper method to define mock.On call

  • _a0 string
  • _a1 ...events.ConsumeOption

func (*Stream_Expecter) Publish

func (_e *Stream_Expecter) Publish(_a0 interface{}, _a1 interface{}, _a2 ...interface{}) *Stream_Publish_Call

Publish is a helper method to define mock.On call

  • _a0 string
  • _a1 interface{}
  • _a2 ...events.PublishOption

type Stream_Publish_Call

type Stream_Publish_Call struct {
	*mock.Call
}

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

func (*Stream_Publish_Call) Return

func (*Stream_Publish_Call) Run

func (_c *Stream_Publish_Call) Run(run func(_a0 string, _a1 interface{}, _a2 ...events.PublishOption)) *Stream_Publish_Call

func (*Stream_Publish_Call) RunAndReturn

func (_c *Stream_Publish_Call) RunAndReturn(run func(string, interface{}, ...events.PublishOption) error) *Stream_Publish_Call

Jump to

Keyboard shortcuts

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