testutil

package
v0.4.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallHTMLRequestHandler

func CallHTMLRequestHandler(t *testing.T, e *echo.Echo, handler echo.HandlerFunc, route string, params map[string]string) *goquery.Document

func CallWebAPIRequestHandler

func CallWebAPIRequestHandler(
	t *testing.T,
	handler echo.HandlerFunc,
	method string,
	route string,
	params map[string]string,
	body interface{},
	res interface{},
	exptectedStatus int,
)

Types

type MockChain

type MockChain struct{}

func (*MockChain) AwaitRequestProcessed

func (*MockChain) AwaitRequestProcessed(ctx context.Context, requestID isc.RequestID, confirmed bool) <-chan *blocklog.RequestReceipt

AwaitRequestProcessed implements chain.Chain

func (*MockChain) ConfigUpdated

func (*MockChain) ConfigUpdated(accessNodes []*cryptolib.PublicKey)

ConfigUpdated implements chain.Chain

func (*MockChain) GetCandidateNodes

func (*MockChain) GetCandidateNodes() []*governance.AccessNodeInfo

GetCandidateNodes implements chain.Chain

func (*MockChain) GetChainNodes

func (*MockChain) GetChainNodes() []peering.PeerStatusProvider

GetChainNodes implements chain.Chain

func (*MockChain) GetCommitteeInfo

func (*MockChain) GetCommitteeInfo() *chain.CommitteeInfo

GetCommitteeInfo implements chain.Chain

func (*MockChain) GetConsensusPipeMetrics

func (*MockChain) GetConsensusPipeMetrics() chain.ConsensusPipeMetrics

GetConsensusPipeMetrics implements chain.Chain

func (*MockChain) GetConsensusWorkflowStatus

func (*MockChain) GetConsensusWorkflowStatus() chain.ConsensusWorkflowStatus

GetConsensusWorkflowStatus implements chain.Chain

func (*MockChain) GetNodeConnectionMetrics

func (*MockChain) GetNodeConnectionMetrics() nodeconnmetrics.NodeConnectionMetrics

GetNodeConnectionMetrics implements chain.Chain

func (*MockChain) ID

func (*MockChain) ID() isc.ChainID

ID implements chain.Chain

func (*MockChain) LatestAliasOutput

func (*MockChain) LatestAliasOutput() (confirmed *isc.AliasOutputWithID, active *isc.AliasOutputWithID)

LatestAliasOutput implements chain.Chain

func (*MockChain) LatestState

func (*MockChain) LatestState(freshness chain.StateFreshness) (state.State, error)

LatestState implements chain.Chain

func (*MockChain) Log

func (*MockChain) Log() *logger.Logger

Log implements chain.Chain

func (*MockChain) Processors

func (*MockChain) Processors() *processors.Cache

Processors implements chain.Chain

func (*MockChain) ReceiveOffLedgerRequest

func (*MockChain) ReceiveOffLedgerRequest(request isc.OffLedgerRequest, sender *cryptolib.PublicKey)

ReceiveOffLedgerRequest implements chain.Chain

func (*MockChain) ServersUpdated

func (*MockChain) ServersUpdated(serverNodes []*cryptolib.PublicKey)

ServersUpdated implements chain.Chain

func (*MockChain) Store

func (*MockChain) Store() state.Store

Store implements chain.Chain

Jump to

Keyboard shortcuts

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