test

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2021 License: Apache-2.0, MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QuietMiningLogs

func QuietMiningLogs()

func RunClientTest

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

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

func StartTwoNodesOneMiner

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

Types

type MockCLI

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

func NewMockCLI

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

func (*MockCLI) Client

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

type MockCLIClient

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

MockCLIClient runs commands against a particular node

func (*MockCLIClient) RunCmd

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

func (*MockCLIClient) RunCmdRaw

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

func (*MockCLIClient) RunInteractiveCmd

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