mocks

package
v0.0.0-...-4ee07f5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 3 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

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) Close

func (_m *Publisher) Close() error

Close provides a mock function with given fields:

func (*Publisher) Publish

func (_m *Publisher) Publish(ctx context.Context, event events.Event) error

Publish provides a mock function with given fields: ctx, event

type Subscriber

type Subscriber struct {
	mock.Mock
}

Subscriber is an autogenerated mock type for the Subscriber type

func NewSubscriber

func NewSubscriber(t interface {
	mock.TestingT
	Cleanup(func())
}) *Subscriber

NewSubscriber creates a new instance of Subscriber. 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 (*Subscriber) Close

func (_m *Subscriber) Close() error

Close provides a mock function with given fields:

func (*Subscriber) Subscribe

func (_m *Subscriber) Subscribe(ctx context.Context, cfg events.SubscriberConfig) error

Subscribe provides a mock function with given fields: ctx, cfg

Jump to

Keyboard shortcuts

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