test

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 5 Imported by: 15

Documentation

Overview

Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/core/test.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertAddressesEqual deprecated added in v0.4.0

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

Deprecated: use github.com/libp2p/go-libp2p/core/test.AssertAddressesEqual instead

func AssertNilError deprecated added in v0.4.0

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

Deprecated: use github.com/libp2p/go-libp2p/core/test.AssertNilError instead

func ExpectError deprecated added in v0.4.0

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

Deprecated: use github.com/libp2p/go-libp2p/core/test.ExpectError instead

func GenerateTestAddrs deprecated added in v0.4.0

func GenerateTestAddrs(n int) []ma.Multiaddr

Deprecated: use github.com/libp2p/go-libp2p/core/test.GenerateTestAddrs instead

func RandPeerID deprecated

func RandPeerID() (peer.ID, error)

Deprecated: use github.com/libp2p/go-libp2p/core/test.RandPeerID instead

func RandPeerIDFatal deprecated

func RandPeerIDFatal(t testing.TB) peer.ID

Deprecated: use github.com/libp2p/go-libp2p/core/test.RandPeerIDFatal instead

func RandTestKeyPair deprecated

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

Deprecated: use github.com/libp2p/go-libp2p/core/sec.RandTestKeyPair instead

func SeededTestKeyPair deprecated

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

Deprecated: use github.com/libp2p/go-libp2p/core/sec.SeededTestKeyPair instead

Types

This section is empty.

Jump to

Keyboard shortcuts

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