test

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 8 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAddressesEqual added in v0.4.0

func AssertAddressesEqual(t *testing.T, exp, act []ma.Multiaddr)

func AssertNilError added in v0.4.0

func AssertNilError(t *testing.T, err error)

func ExpectError added in v0.4.0

func ExpectError(t *testing.T, err error, msg string)

func GenerateTestAddrs added in v0.4.0

func GenerateTestAddrs(n int) []ma.Multiaddr

func RandPeerID

func RandPeerID() (peer.ID, error)

func RandPeerIDFatal

func RandPeerIDFatal(t testing.TB) peer.ID

func RandTestKeyPair

func RandTestKeyPair(typ, bits int) (ci.PrivKey, ci.PubKey, error)

func SeededTestKeyPair

func SeededTestKeyPair(typ, bits int, seed int64) (ci.PrivKey, ci.PubKey, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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