testsuite

package
v0.0.0-...-2be76b0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInitChain       = errors.New("baron chain init chain failed")
	ErrCommit          = errors.New("baron chain commit failed")
	ErrDeliverTx       = errors.New("baron chain delivery failed")
	ErrCheckTx         = errors.New("baron chain validation failed")
	ErrPrepareProposal = errors.New("baron chain proposal preparation failed")
	ErrProcessProposal = errors.New("baron chain proposal processing failed")
)

Functions

This section is empty.

Types

type TestResult

type TestResult struct {
	Success bool
	Error   error
	Message string
}

TestResult represents a test case result

func CheckTx

func CheckTx(client abcicli.Client, tx []byte, expectCode uint32, expectData []byte) TestResult

CheckTx tests Baron Chain transaction validation

func Commit

func Commit(client abcicli.Client, expectedHash []byte) TestResult

Commit verifies Baron Chain block commitment

func DeliverTx

func DeliverTx(client abcicli.Client, tx []byte, expectCode uint32, expectData []byte) TestResult

DeliverTx tests Baron Chain transaction delivery

func InitChain

func InitChain(client abcicli.Client) TestResult

InitChain initializes the Baron Chain validator set

func PrepareProposal

func PrepareProposal(client abcicli.Client, txs [][]byte, expectedTxs [][]byte, expectData []byte) TestResult

PrepareProposal tests Baron Chain proposal preparation

func ProcessProposal

func ProcessProposal(client abcicli.Client, txs [][]byte, expectStatus types.ResponseProcessProposal_ProposalStatus) TestResult

ProcessProposal tests Baron Chain proposal processing

Jump to

Keyboard shortcuts

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