Documentation ¶
Index ¶
- Variables
- type TestResult
- func CheckTx(client abcicli.Client, tx []byte, expectCode uint32, expectData []byte) TestResult
- func Commit(client abcicli.Client, expectedHash []byte) TestResult
- func DeliverTx(client abcicli.Client, tx []byte, expectCode uint32, expectData []byte) TestResult
- func InitChain(client abcicli.Client) TestResult
- func PrepareProposal(client abcicli.Client, txs [][]byte, expectedTxs [][]byte, expectData []byte) TestResult
- func ProcessProposal(client abcicli.Client, txs [][]byte, ...) TestResult
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 ¶
TestResult represents a test case result
func Commit ¶
func Commit(client abcicli.Client, expectedHash []byte) TestResult
Commit verifies Baron Chain block commitment
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
Click to show internal directories.
Click to hide internal directories.