Documentation
¶
Overview ¶
Package pubsubtest provides a shared Ginkgo behavior suite every pubsub.Notifier implementation must pass. A shared notifier reuses it verbatim — engine/notify/pgnotify does:
var _ = pubsubtest.Conformance("postgres", func() pubsub.Notifier { ... })
The specs are written for an asynchronous transport: delivery is asserted with Eventually, never "notify then immediately receive", so an implementation that hops through a broker passes the same suite as the in-process one. What they do assert strictly is the shape the server depends on — signals are content-free and coalesce, Notify never blocks on a subscriber that is not reading, and cancel is a clean, repeatable teardown.
The pubsub.Activity extension is covered too, and skipped for an implementation that does not offer it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.