Documentation

Index

Constants

View Source
const (
	ChainName = "Integration_Test_Chain"
)

Variables

This section is empty.

Functions

func CommitImmediately

func CommitImmediately(conf *config.BurrowConfig)

func EnterTestDirectory

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

func MakeEthereumAccounts

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

    func NoConsensus(conf *config.BurrowConfig)

    func RunNode

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

    func Shutdown

    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.

        Source Files

        Directories

        Path Synopsis