tests

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunHoldingsWorkerTests added in v1.35.0

func RunHoldingsWorkerTests(t *testing.T, s chat.Store, teardown func())

RunHoldingsWorkerTests runs the shared chat.HoldingsWorker test suite against s; teardown resets it between tests.

func RunPinStoreTests added in v1.38.0

func RunPinStoreTests(t *testing.T, s chat.Store, teardown func())

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

func RunServerTests(t *testing.T, s chat.Store, teardown func())

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.

Jump to

Keyboard shortcuts

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