testing

package
v0.0.0-...-68bf850 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0, EPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertNoRouterHandlers

func AssertNoRouterHandlers(t *testing.T, router *message.Router)

AssertNoRouterHandlers asserts no handlers are registered in a Watermill router.

func AssertRouterHandler

func AssertRouterHandler(t *testing.T, expectedHandlerName, expectedSubscribeTopic, expectedPublishTopic string, refHandler reflect.Value)

AssertRouterHandler asserts a Watermill router handler.

func ContainsString

func ContainsString(arr []string, target string) bool

ContainsString returns true if a slice contains a given string.

func NewDummyMessageHandler

func NewDummyMessageHandler(handlerName string, topic string, initErr error) handlers.MessageHandler

NewDummyMessageHandler instantiates a new dummy message handler.

func NewDummySubscriber

func NewDummySubscriber() message.Subscriber

NewDummySubscriber instantiates a new dummy Watermill subscriber.

Types

This section is empty.

Jump to

Keyboard shortcuts

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