integration

package
v0.29.4 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: Apache-2.0 Imports: 22 Imported by: 7 modules, 6 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ChainName = "Integration_Test_Chain"
)

Variables

This section is empty.

Functions

func CommitImmediately added in v0.25.0

func CommitImmediately(conf *config.BurrowConfig)

func EnterTestDirectory

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

func MakeEthereumAccounts added in v0.29.0

func MakeEthereumAccounts(sec string, n int) []*acm.PrivateAccount

func MakePrivateAccounts

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

Default deterministic account generation helper, pass number of accounts to make

func NewTestConfig

func NewTestConfig(genesisDoc *genesis.GenesisDoc,
	options ...func(*config.BurrowConfig)) (conf *config.BurrowConfig, cleanup func())

func NoConsensus added in v0.25.0

func NoConsensus(conf *config.BurrowConfig)

func RunNode added in v0.25.0

func RunNode(t testing.TB, genesisDoc *genesis.GenesisDoc, privateAccounts []*acm.PrivateAccount,
	options ...func(*config.BurrowConfig)) (kern *core.Kernel, shutdown func())

func Shutdown added in v0.25.0

func Shutdown(kern *core.Kernel)

func TestGenesisDoc

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

TestGenesisDoc creates genesis from a set of accounts and validators from indices within that slice

func TestKernel

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

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