testutil

package
v0.1.8-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2019 License: GPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoOpStreamHandler = func(s net.Stream) {}

NoOpStreamHandler accepts a stream and does nothing

Functions

func RandomHost

func RandomHost(seed int64, port int) (host.Host, error)

RandomHost creates a host with random identity

func SetTestCfg

func SetTestCfg() (*config.EngineConfig, error)

SetTestCfg prepare a config directory for tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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