Documentation ¶
Index ¶
- Constants
- func ClaimPorts() uint16
- func EnterTestDirectory() (cleanup func())
- func GetLocalAddress() string
- func GetName() string
- func GetPort() uint16
- func GetTCPLocalAddress() string
- func MakePrivateAccounts(n int) []*acm.PrivateAccount
- func NewTestConfig(genesisDoc *genesis.GenesisDoc) *config.BurrowConfig
- func TestGenesisDoc(addressables []*acm.PrivateAccount) *genesis.GenesisDoc
- func TestKernel(validatorAccount *acm.PrivateAccount, keysAccounts []*acm.PrivateAccount, ...) *core.Kernel
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() (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 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.
Click to show internal directories.
Click to hide internal directories.