tests

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tests = map[string]Test{}

Functions

func RegisterTest

func RegisterTest(module string, test Test)

Types

type ComputeBlockHashTest

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

func (ComputeBlockHashTest) Description

func (t ComputeBlockHashTest) Description() string

func (ComputeBlockHashTest) TestDatas

func (t ComputeBlockHashTest) TestDatas() []TestData

type Eventsreposnse

type Eventsreposnse struct {
	Events      []string
	RecieptHash []string
}

type GetBalanceTest

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

func (GetBalanceTest) Description

func (t GetBalanceTest) Description() string

func (GetBalanceTest) TestDatas

func (t GetBalanceTest) TestDatas() []TestData

type GetBlockHeaderTest

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

func (GetBlockHeaderTest) Description

func (t GetBlockHeaderTest) Description() string

func (GetBlockHeaderTest) TestDatas

func (t GetBlockHeaderTest) TestDatas() []TestData

type GetBlockProofTest

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

func (GetBlockProofTest) Description

func (t GetBlockProofTest) Description() string

func (GetBlockProofTest) TestDatas

func (t GetBlockProofTest) TestDatas() []TestData

type GetBlockTest

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

func (GetBlockTest) Description

func (t GetBlockTest) Description() string

func (GetBlockTest) TestDatas

func (t GetBlockTest) TestDatas() []TestData

type GetBmcLinkStatus

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

func (GetBmcLinkStatus) Description

func (t GetBmcLinkStatus) Description() string

func (GetBmcLinkStatus) TestDatas

func (t GetBmcLinkStatus) TestDatas() []TestData

type GetEvents

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

func (GetEvents) Description

func (t GetEvents) Description() string

func (GetEvents) TestDatas

func (t GetEvents) TestDatas() []TestData

type GetNonceTest

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

func (GetNonceTest) Description

func (t GetNonceTest) Description() string

func (GetNonceTest) TestDatas

func (t GetNonceTest) TestDatas() []TestData

type GetReceiptProofsTest

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

func (GetReceiptProofsTest) Description

func (t GetReceiptProofsTest) Description() string

func (GetReceiptProofsTest) TestDatas

func (t GetReceiptProofsTest) TestDatas() []TestData

type MonitorBlockHeight

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

func (MonitorBlockHeight) Description

func (t MonitorBlockHeight) Description() string

func (MonitorBlockHeight) TestDatas

func (t MonitorBlockHeight) TestDatas() []TestData

type MonitorReciverBlock

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

func (MonitorReciverBlock) Description

func (t MonitorReciverBlock) Description() string

func (MonitorReciverBlock) TestDatas

func (t MonitorReciverBlock) TestDatas() []TestData

type MonitorSenderBlock

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

func (MonitorSenderBlock) Description

func (t MonitorSenderBlock) Description() string

func (MonitorSenderBlock) TestDatas

func (t MonitorSenderBlock) TestDatas() []TestData

type ReceiverReceiveBlocks

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

func (ReceiverReceiveBlocks) Description

func (t ReceiverReceiveBlocks) Description() string

func (ReceiverReceiveBlocks) TestDatas

func (t ReceiverReceiveBlocks) TestDatas() []TestData

type ReceiverSubscribe

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

func (ReceiverSubscribe) Description

func (t ReceiverSubscribe) Description() string

func (ReceiverSubscribe) TestDatas

func (t ReceiverSubscribe) TestDatas() []TestData

type RelayTxReceiptTest

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

func (RelayTxReceiptTest) Description

func (t RelayTxReceiptTest) Description() string

func (RelayTxReceiptTest) TestDatas

func (t RelayTxReceiptTest) TestDatas() []TestData

type RelayTxSendTest

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

func (RelayTxSendTest) Description

func (t RelayTxSendTest) Description() string

func (RelayTxSendTest) TestDatas

func (t RelayTxSendTest) TestDatas() []TestData

type SendTransactionTest

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

func (SendTransactionTest) Description

func (t SendTransactionTest) Description() string

func (SendTransactionTest) TestDatas

func (t SendTransactionTest) TestDatas() []TestData

type Test

type Test interface {
	Description() string
	TestDatas() []TestData
}

func GetTest

func GetTest(module string, t *testing.T) (Test, error)

type TestData

type TestData struct {
	Description string
	Input       interface{}
	Expected    struct {
		Success interface{}
		Fail    interface{}
	}
	MockApi     *mock.MockApi
	MockStorage mock.Storage
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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