test

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPublishingBenchmark

func NewPublishingBenchmark(p message.Publisher) func(*testing.B)

func NewSubscriptionBenchmark

func NewSubscriptionBenchmark(s message.Subscriber) func(*testing.B)

func OfficialImplementationAcceptance

func OfficialImplementationAcceptance(fixture PubSubFixture) func(t *testing.T)

func TestBasicSendRecieve

func TestBasicSendRecieve(setup PubSubFixture) func(t *testing.T)

func TestHungOperations

func TestHungOperations(setup PubSubFixture) func(t *testing.T)

func TestNilPayloadMessagePublishingAndReceiving added in v0.0.6

func TestNilPayloadMessagePublishingAndReceiving(fixture PubSubFixture) func(t *testing.T)

TestNilPayloadMessagePublishingAndReceiving ensures that a publisher may publish messages without any payload, that is a nil payload.

Clarification: https://github.com/ThreeDotsLabs/watermill/issues/565#issuecomment-2885938295

func TestOnePublisherThreeSubscribers

func TestOnePublisherThreeSubscribers(setup PubSubFixture, messageCount int) func(t *testing.T)

Types

type PubSubFixture

type PubSubFixture func(t *testing.T, consumerGroup string) (message.Publisher, message.Subscriber)

func (PubSubFixture) WithConsumerGroup

func (f PubSubFixture) WithConsumerGroup(consumerGroup string) func(t *testing.T) (message.Publisher, message.Subscriber)

Jump to

Keyboard shortcuts

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