common

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env interface {
	String() string
}

func WithEnv

func WithEnv(key, value string) Env

type NodeTestSuite

type NodeTestSuite struct {
	suite.Suite

	TimeoutCommit time.Duration
	// contains filtered or unexported fields
}

func (*NodeTestSuite) Account

func (ts *NodeTestSuite) Account(idx int) common.Address

func (*NodeTestSuite) ExecCLICommand

func (ts *NodeTestSuite) ExecCLICommand(ctx context.Context, cmdStr string, envs ...Env) ([]byte, []byte, error)

func (*NodeTestSuite) ExecCommand

func (ts *NodeTestSuite) ExecCommand(ctx context.Context, binName, cmdStr string, envs ...Env) ([]byte, []byte, error)

func (*NodeTestSuite) ExecDCommand

func (ts *NodeTestSuite) ExecDCommand(ctx context.Context, cmdStr string, envs ...Env) ([]byte, []byte, error)

func (*NodeTestSuite) GetNodeConfig

func (ts *NodeTestSuite) GetNodeConfig() *cfg.Config

func (*NodeTestSuite) InitNode

func (ts *NodeTestSuite) InitNode()

func (*NodeTestSuite) MakeAccounts

func (ts *NodeTestSuite) MakeAccounts(ctx context.Context, start, end int) []common.Address

func (*NodeTestSuite) RPCClient

func (ts *NodeTestSuite) RPCClient() rpclient.Client

func (*NodeTestSuite) RunNode

func (ts *NodeTestSuite) RunNode()

func (*NodeTestSuite) Setup

func (ts *NodeTestSuite) Setup(binDir, homeDir string)

func (*NodeTestSuite) StopNode

func (ts *NodeTestSuite) StopNode()

func (*NodeTestSuite) TearDown

func (ts *NodeTestSuite) TearDown()

Jump to

Keyboard shortcuts

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