Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TestConfig *common.TestConfig // RootDir is the main application directory RootDir string // TestDataDir is data directory used for tests TestDataDir string // TestNetworkNames network ID to name mapping TestNetworkNames = map[int]string{ params.MainNetworkID: "Mainnet", params.RopstenNetworkID: "Ropsten", params.RinkebyNetworkID: "Rinkeby", } )
Functions ¶
func FirstBlockHash ¶
func FirstBlockHash(require *assertions.Assertions, nodeManager common.NodeManager, expectedHash string)
func LoadFromFile ¶
LoadFromFile is useful for loading test data, from testdata/filename into a variable nolint: errcheck
func MakeTestNodeConfig ¶
func MakeTestNodeConfig(networkID int) (*params.NodeConfig, error)
Types ¶
type BaseTestSuite ¶
type BaseTestSuite struct { suite.Suite NodeManager common.NodeManager }
func (*BaseTestSuite) StartTestNode ¶
func (s *BaseTestSuite) StartTestNode(networkID int)
func (*BaseTestSuite) StopTestNode ¶
func (s *BaseTestSuite) StopTestNode()
Click to show internal directories.
Click to hide internal directories.