mocks

package
v0.0.0-...-d67a65b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IConsumer

type IConsumer[T interface{}] struct {
	mock.Mock
}

IConsumer is an autogenerated mock type for the IConsumer type

func NewIConsumer

func NewIConsumer[T interface{}](t mockConstructorTestingTNewIConsumer) *IConsumer[T]

NewIConsumer creates a new instance of IConsumer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IConsumer[T]) ConsumeMessage

func (_m *IConsumer[T]) ConsumeMessage(msg interface{}, dependencies T) error

ConsumeMessage provides a mock function with given fields: msg, dependencies

func (*IConsumer[T]) IsConsumed

func (_m *IConsumer[T]) IsConsumed(msg interface{}) bool

IsConsumed provides a mock function with given fields: msg

type IPublisher

type IPublisher struct {
	mock.Mock
}

IPublisher is an autogenerated mock type for the IPublisher type

func NewIPublisher

func NewIPublisher(t mockConstructorTestingTNewIPublisher) *IPublisher

NewIPublisher creates a new instance of IPublisher. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IPublisher) IsPublished

func (_m *IPublisher) IsPublished(msg interface{}) bool

IsPublished provides a mock function with given fields: msg

func (*IPublisher) PublishMessage

func (_m *IPublisher) PublishMessage(msg interface{}) error

PublishMessage provides a mock function with given fields: msg

Jump to

Keyboard shortcuts

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