integration

package
v0.24.6 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainName = "Integration_Test_Chain"
)

Variables

This section is empty.

Functions

func ClaimPorts

func ClaimPorts() uint16

Some helpers for setting Burrow's various ports in non-colliding ranges for tests

func EnterTestDirectory

func EnterTestDirectory() (testDir string, cleanup func())

func GetLocalAddress

func GetLocalAddress() string

func GetName

func GetName() string

Gets an name based on an incrementing counter for running multiple nodes

func GetPort

func GetPort() uint16

func GetTCPLocalAddress

func GetTCPLocalAddress() string

func MakePrivateAccounts

func MakePrivateAccounts(n int) []*acm.PrivateAccount

Deterministic account generation helper. Pass number of accounts to make

func NewTestConfig

func NewTestConfig(genesisDoc *genesis.GenesisDoc) *config.BurrowConfig

func TestGenesisDoc

func TestGenesisDoc(addressables []*acm.PrivateAccount) *genesis.GenesisDoc

func TestKernel

func TestKernel(validatorAccount *acm.PrivateAccount, keysAccounts []*acm.PrivateAccount,
	testConfig *config.BurrowConfig, loggingConfig *lConfig.LoggingConfig) *core.Kernel

We use this to wrap tests

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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