Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunHoldingsWorkerTests ¶ added in v1.35.0
RunHoldingsWorkerTests runs the shared chat.HoldingsWorker test suite against s; teardown resets it between tests.
func RunPinStoreTests ¶ added in v1.38.0
RunPinStoreTests runs the shared tests of a chat.Store's pins (see chat.Pin) against s, alone. They are part of RunStoreTests; this runs them for a store with no wrapper of its own for the whole suite, such as the cache over memory. teardown is called between tests to reset the store; every test names chats of its own, so a store that shares storage with another is safe.
func RunServerTests ¶
RunServerTests runs the shared chat.Server test suite against s. teardown is called between tests to reset the store.
func RunStoreTests ¶
func RunStoreTests(t *testing.T, s chat.Store, newStore func(excludedFromFeed []*commonpb.UserId) chat.Store, teardown func())
RunStoreTests runs the shared chat.Store test suite against s, a store excluding no one from the feed, and stores newStore builds excluding the users given (see chat.FeedExclusions). teardown is called between tests to reset the store; the stores newStore builds may share s's storage, and every test using them names chats and users of its own.
Types ¶
This section is empty.