Documentation ¶
Index ¶
- func AssertNoRouterHandlers(t *testing.T, router *message.Router)
- func AssertRouterHandler(t *testing.T, ...)
- func ContainsString(arr []string, target string) bool
- func NewDummyMessageHandler(handlerName string, topic string, initErr error) handlers.MessageHandler
- func NewDummySubscriber() message.Subscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertNoRouterHandlers ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.