Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PublisherInput ¶
type PublisherInput struct {
Subject bps.Publisher
Messages func(string, int) ([]*bps.PubMessage, error)
Setup func(topics ...string) error
Teardown func(topics ...string) error
}
PublisherInput for the shared test.
type SubscriberInput ¶
type SubscriberInput struct {
// Subject should return a subject to be tested, with given topic/messages seeded.
// Caller should handle all the subject teardown/cleanup.
// Topics are guaranteed to be prefixed with "bps-unittest-".
Subject func(topic string, messages []bps.SubMessage) bps.Subscriber
}
SubscriberInput for the shared test.
Click to show internal directories.
Click to hide internal directories.