testing

package
v0.0.0-...-a4d05e0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkQuery

func BenchmarkQuery(b *testing.B, ctx context.Context, topic *crdttest.TestStore, start, end uint64, pageSize uint32)

func NewNetwork

func NewNetwork(t *testing.T, count int, opts ...networkOption) *network

func NewNode

func NewNode(t testing.TB, opts ...TestNodeOption) *testNode

func RunRandomNodeAndTopicSpraying

func RunRandomNodeAndTopicSpraying(t *testing.T, nodes, topics, messages int, opts ...networkOption)

func RunTopicLifecycleTest

func RunTopicLifecycleTest(t *testing.T, s node.NodeStore)

func TestTopicBootstrap

func TestTopicBootstrap(t testing.TB, storeMaker func(t testing.TB, ctx context.Context) node.NodeStore)

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

Jump to

Keyboard shortcuts

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