Documentation ¶
Index ¶
- Constants
- func CommitImmediately(conf *config.BurrowConfig)
- func EnterTestDirectory() (testDir string, cleanup func())
- func MakePrivateAccounts(n int) []*acm.PrivateAccount
- func NewTestConfig(genesisDoc *genesis.GenesisDoc, options ...func(*config.BurrowConfig)) (conf *config.BurrowConfig, cleanup func())
- func NoConsensus(conf *config.BurrowConfig)
- func RunNode(t testing.TB, genesisDoc *genesis.GenesisDoc, ...) (kern *core.Kernel, shutdown func())
- func Shutdown(kern *core.Kernel)
- func TestGenesisDoc(addressables []*acm.PrivateAccount) *genesis.GenesisDoc
- func TestKernel(validatorAccount *acm.PrivateAccount, keysAccounts []*acm.PrivateAccount, ...) (*core.Kernel, error)
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 MakePrivateAccounts ¶
func MakePrivateAccounts(n int) []*acm.PrivateAccount
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 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, error)
We use this to wrap tests
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.