test

package
v1.10.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0, MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QuietMiningLogs

func QuietMiningLogs()

func RunClientTest added in v1.1.1

func RunClientTest(t *testing.T, cmds []*lcli.Command, clientNode test.TestNode)

RunClientTest exercises some of the client CLI commands

func RunMultisigTest

func RunMultisigTest(t *testing.T, cmds []*lcli.Command, clientNode test.TestNode)

func StartOneNodeOneMiner added in v1.1.1

func StartOneNodeOneMiner(ctx context.Context, t *testing.T, blocktime time.Duration) (test.TestNode, address.Address)

func StartTwoNodesOneMiner added in v1.1.3

func StartTwoNodesOneMiner(ctx context.Context, t *testing.T, blocktime time.Duration) ([]test.TestNode, []address.Address)

Types

type MockCLI added in v1.1.3

type MockCLI struct {
	// contains filtered or unexported fields
}

func NewMockCLI added in v1.1.3

func NewMockCLI(ctx context.Context, t *testing.T, cmds []*lcli.Command) *MockCLI

func (*MockCLI) Client added in v1.1.3

func (c *MockCLI) Client(addr multiaddr.Multiaddr) *MockCLIClient

type MockCLIClient added in v1.1.3

type MockCLIClient struct {
	// contains filtered or unexported fields
}

MockCLIClient runs commands against a particular node

func (*MockCLIClient) RunCmd added in v1.1.3

func (c *MockCLIClient) RunCmd(input ...string) string

func (*MockCLIClient) RunCmdRaw added in v1.1.3

func (c *MockCLIClient) RunCmdRaw(input ...string) (string, error)

func (*MockCLIClient) RunInteractiveCmd added in v1.1.3

func (c *MockCLIClient) RunInteractiveCmd(cmd []string, interactive []string) string

Jump to

Keyboard shortcuts

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