testutil

package
v1.0.0-alpha.18 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Multiaddr

func Multiaddr(id peer.ID) multiaddr.Multiaddr

func NewClock

func NewClock(ctrl *gomock.Controller, accuracy time.Duration, onTick func(t time.Time)) *mock_mx.MockClockController

func NewHost

func NewHost(ctrl *gomock.Controller) *mock_libp2p.MockHost

func NewHostFactory

func NewHostFactory(ctrl *gomock.Controller) *mock_mx.MockHostFactory

func NewID

func NewID() peer.ID

func PeerID

func PeerID() peer.ID

PeerID returns a random peer.ID for testing

func RandInfo

func RandInfo() *peer.AddrInfo

Types

This section is empty.

Jump to

Keyboard shortcuts

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