Documentation ¶
Index ¶
- func AddSimpleMessages(t *testing.T, messagesCount int, publisher message.Publisher, topicName string) message.Messages
- func AddSimpleMessagesParallel(t *testing.T, messagesCount int, publisher message.Publisher, topicName string, ...) message.Messages
- func BenchSubscriber(b *testing.B, pubSubConstructor BenchmarkPubSubConstructor)
- func RunOnlyFastTests() bool
- func TestConcurrentClose(t *testing.T, createPubSub PubSubConstructor, features Features)
- func TestConsumerGroups(t *testing.T, pubSubConstructor ConsumerGroupPubSubConstructor, ...)
- func TestContinueAfterErrors(t *testing.T, createPubSub PubSubConstructor, features Features)
- func TestContinueAfterSubscribeClose(t *testing.T, createPubSub PubSubConstructor, features Features)
- func TestMessageCtx(t *testing.T, pubSub PubSub, features Features)
- func TestNoAck(t *testing.T, pubSub PubSub, features Features)
- func TestNoGroupSubscriber(t *testing.T, pubSubConstructor PubSubConstructor, ...)
- func TestPubSub(t *testing.T, features Features, pubSubConstructor PubSubConstructor, ...)
- func TestPubSubStressTest(t *testing.T, features Features, pubSubConstructor PubSubConstructor, ...)
- func TestPublishSubscribe(t *testing.T, pubSub PubSub, features Features)
- func TestPublishSubscribeInOrder(t *testing.T, pubSub PubSub, features Features)
- func TestPublisherClose(t *testing.T, pubSub PubSub, features Features)
- func TestReconnect(t *testing.T, pubSub PubSub, features Features)
- func TestResendOnError(t *testing.T, pubSub PubSub, features Features)
- func TestSubscribeCtx(t *testing.T, pubSub PubSub, features Features)
- func TestTopic(t *testing.T, pubSub PubSub, features Features)
- type BenchmarkPubSubConstructor
- type ConsumerGroupPubSubConstructor
- type Features
- type NoGroupSubscriberConstructor
- type PubSub
- type PubSubConstructor
- type SimpleMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddSimpleMessages ¶ added in v0.3.0
func AddSimpleMessagesParallel ¶ added in v0.3.0
func BenchSubscriber ¶
func BenchSubscriber(b *testing.B, pubSubConstructor BenchmarkPubSubConstructor)
func RunOnlyFastTests ¶ added in v0.4.0
func RunOnlyFastTests() bool
RunOnlyFastTests returns true if -short flag was provided -race was not provided. Useful for excluding some slow tests.
func TestConcurrentClose ¶ added in v0.3.0
func TestConcurrentClose(t *testing.T, createPubSub PubSubConstructor, features Features)
func TestConsumerGroups ¶ added in v0.3.0
func TestConsumerGroups(t *testing.T, pubSubConstructor ConsumerGroupPubSubConstructor, features Features)
func TestContinueAfterErrors ¶ added in v0.3.0
func TestContinueAfterErrors(t *testing.T, createPubSub PubSubConstructor, features Features)
func TestContinueAfterSubscribeClose ¶ added in v0.3.0
func TestContinueAfterSubscribeClose(t *testing.T, createPubSub PubSubConstructor, features Features)
TestContinueAfterSubscribeClose checks, that we don't lose messages after closing subscriber.
func TestMessageCtx ¶ added in v0.3.0
func TestNoGroupSubscriber ¶
func TestNoGroupSubscriber( t *testing.T, pubSubConstructor PubSubConstructor, noGroupSubscriberConstructor NoGroupSubscriberConstructor, )
func TestPubSub ¶
func TestPubSub( t *testing.T, features Features, pubSubConstructor PubSubConstructor, consumerGroupPubSubConstructor ConsumerGroupPubSubConstructor, )
func TestPubSubStressTest ¶
func TestPubSubStressTest( t *testing.T, features Features, pubSubConstructor PubSubConstructor, consumerGroupPubSubConstructor ConsumerGroupPubSubConstructor, )
func TestPublishSubscribe ¶ added in v0.3.0
func TestPublishSubscribeInOrder ¶ added in v0.3.0
func TestPublisherClose ¶ added in v0.3.0
TestPublisherClose sends big amount of messages and them run close to ensure that messages are not lost during adding.
func TestReconnect ¶ added in v0.3.0
func TestResendOnError ¶ added in v0.3.0
func TestSubscribeCtx ¶ added in v0.3.0
Types ¶
type NoGroupSubscriberConstructor ¶
type NoGroupSubscriberConstructor func(t *testing.T) message.Subscriber
type PubSub ¶ added in v0.3.0
type PubSub interface { message.PubSub // Subscriber is needed for unwrapped message.PubSub's subscriber, containing SubscribeInitializer. Subscriber() message.Subscriber }
type PubSubConstructor ¶
type SimpleMessage ¶
type SimpleMessage struct {
Num int `json:"num"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.