Documentation ¶
Index ¶
- func MkChain(lsys ipld.LinkSystem, full bool) []ipld.Link
- func MkLinkSystem(ds datastore.Batching) ipld.LinkSystem
- func MkTestHost(options ...libp2p.Option) host.Host
- func RandomCids(n int) []cid.Cid
- func Store(srcStore datastore.Batching, n ipld.Node) (ipld.Link, error)
- func WaitForHttpPublisher(publisher TestPublisher) error
- func WaitForMeshWithMessage(t *testing.T, topic string, hosts ...host.Host) []*pubsub.Topic
- func WaitForP2PPublisher(publisher TestPublisher, clientHost host.Host, topic string) error
- type TestPublisher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MkChain ¶
func MkChain(lsys ipld.LinkSystem, full bool) []ipld.Link
Return the chain with all nodes or just half of it for testing
func MkLinkSystem ¶
func MkLinkSystem(ds datastore.Batching) ipld.LinkSystem
func MkTestHost ¶
func RandomCids ¶
func RandomCids(n int) []cid.Cid
func WaitForHttpPublisher ¶
func WaitForHttpPublisher(publisher TestPublisher) error
func WaitForMeshWithMessage ¶
func WaitForP2PPublisher ¶
func WaitForP2PPublisher(publisher TestPublisher, clientHost host.Host, topic string) error
Types ¶
type TestPublisher ¶
Click to show internal directories.
Click to hide internal directories.