testing

package
v0.0.0-...-c274cf5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2017 License: MPL-2.0 Imports: 12 Imported by: 0

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

func LoadFromFile(filename string) string

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL