tests

package
v0.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0, BSD-2-Clause Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainEnv added in v0.3.0

type ChainEnv struct {
	Chain *cluster.Chain
	// contains filtered or unexported fields
}

func SetupWithChain added in v0.3.0

func SetupWithChain(t *testing.T, opt ...waspClusterOpts) *ChainEnv

func (*ChainEnv) DepositFunds added in v0.3.0

func (e *ChainEnv) DepositFunds(amount uint64, keyPair *cryptolib.KeyPair)

func (*ChainEnv) NewChainClient added in v0.3.0

func (e *ChainEnv) NewChainClient() *chainclient.Client

type WaspCLITest

type WaspCLITest struct {
	T       *testing.T
	Cluster *cluster.Cluster

	WaspCliAddress iotago.Address
	// contains filtered or unexported fields
}

func (*WaspCLITest) Address

func (w *WaspCLITest) Address() iotago.Address

func (*WaspCLITest) CommitteeConfig

func (w *WaspCLITest) CommitteeConfig() (string, string)

func (*WaspCLITest) CopyFile

func (w *WaspCLITest) CopyFile(srcFile string)

CopyFile copies the given file into the temp directory

func (*WaspCLITest) GetReceiptFromRunPostRequestOutput added in v0.3.0

func (w *WaspCLITest) GetReceiptFromRunPostRequestOutput(out []string) []string

func (*WaspCLITest) Pipe

func (w *WaspCLITest) Pipe(in []string, args ...string) []string

func (*WaspCLITest) PostRequestGetReceipt added in v0.3.0

func (w *WaspCLITest) PostRequestGetReceipt(args ...string) []string

func (*WaspCLITest) Run

func (w *WaspCLITest) Run(args ...string) []string

Jump to

Keyboard shortcuts

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