itest

package
v5.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type E2ESuite

type E2ESuite struct {
	T       *testing.T
	Cfg     network.Config
	Network *network.Network
}

func (*E2ESuite) RunQuery

func (s *E2ESuite) RunQuery(tq TestQuery)

func (*E2ESuite) RunTestQueries

func (s *E2ESuite) RunTestQueries(tqs ...TestQuery)

runTestQuery

func (*E2ESuite) RunTestTransactions

func (s *E2ESuite) RunTestTransactions(txs ...TestTransaction)

runTestCases runs test transactions or queries, stopping early if an error occurs

func (*E2ESuite) RunTransaction

func (s *E2ESuite) RunTransaction(tx TestTransaction)

func (*E2ESuite) SetupSuite

func (s *E2ESuite) SetupSuite()

func (*E2ESuite) TearDownSuite

func (s *E2ESuite) TearDownSuite()

type TestQuery

type TestQuery struct {
	Name    string
	Command *cobra.Command
	Args    []string
	// object to decode response into
	Response         proto.Message
	ExpectedResponse proto.Message
	ErrMsg           string
}

type TestTransaction

type TestTransaction struct {
	Name        string
	Command     *cobra.Command
	Args        []string
	ExpectedErr *errors.Error
}

Jump to

Keyboard shortcuts

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