Documentation ¶
Index ¶
- func BenchmarkQuery(b *testing.B, ctx context.Context, topic *crdttest.TestStore, ...)
- func NewNetwork(t *testing.T, count int, opts ...networkOption) *network
- func NewNode(t testing.TB, opts ...TestNodeOption) *testNode
- func RunRandomNodeAndTopicSpraying(t *testing.T, nodes, topics, messages int, opts ...networkOption)
- func RunTopicLifecycleTest(t *testing.T, s node.NodeStore)
- func TestTopicBootstrap(t testing.TB, ...)
- func WithStoreMaker(sm storeMaker) networkOption
- type TestNodeOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenchmarkQuery ¶
func NewNetwork ¶
func NewNode ¶
func NewNode(t testing.TB, opts ...TestNodeOption) *testNode
func TestTopicBootstrap ¶
func WithStoreMaker ¶
func WithStoreMaker(sm storeMaker) networkOption
Types ¶
type TestNodeOption ¶
type TestNodeOption func(n *testNode)
func WithContext ¶
func WithContext(ctx context.Context) TestNodeOption
func WithName ¶
func WithName(name string) TestNodeOption
func WithPersistentPeers ¶
func WithPersistentPeers(addrs ...string) TestNodeOption
func WithStore ¶
func WithStore(store node.NodeStore) TestNodeOption
Click to show internal directories.
Click to hide internal directories.