Documentation ¶
Index ¶
Constants ¶
View Source
const ( CreateProposal = "createProposal" CreatePrepare = "CreatePrepare" CreateCommit = "CreateCommit" CreateRoundChange = "CreateRoundChange" )
View Source
const ChangeProposerFuncInstanceHeight = 10
ChangeProposerFuncInstanceHeight tests with this height will return proposer operator ID 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerSpecTest ¶
type ControllerSpecTest struct { Name string RunInstanceData []*RunInstanceData OutputMessages []*qbft.SignedMessage ExpectedError string }
func (*ControllerSpecTest) Run ¶
func (test *ControllerSpecTest) Run(t *testing.T)
func (*ControllerSpecTest) TestName ¶
func (test *ControllerSpecTest) TestName() string
type CreateMsgSpecTest ¶
type CreateMsgSpecTest struct { Name string Value []byte Round qbft.Round RoundChangeJustifications, PrepareJustifications []*qbft.SignedMessage CreateType string ExpectedRoot string ExpectedError string }
func (*CreateMsgSpecTest) Run ¶
func (test *CreateMsgSpecTest) Run(t *testing.T)
func (*CreateMsgSpecTest) TestName ¶
func (test *CreateMsgSpecTest) TestName() string
type DecidedState ¶
type MsgProcessingSpecTest ¶
type MsgProcessingSpecTest struct { Name string Pre *qbft.Instance PostRoot string InputMessages []*qbft.SignedMessage OutputMessages []*qbft.SignedMessage ExpectedError string ExpectedTimerState *testingutils.TimerState }
func HappyFlow ¶
func HappyFlow() *MsgProcessingSpecTest
HappyFlow tests a simple full happy flow until decided
func SevenOperators ¶
func SevenOperators() *MsgProcessingSpecTest
SevenOperators tests a simple full happy flow until decided
func TenOperators ¶
func TenOperators() *MsgProcessingSpecTest
TenOperators tests a simple full happy flow until decided
func ThirteenOperators ¶
func ThirteenOperators() *MsgProcessingSpecTest
ThirteenOperators tests a simple full happy flow until decided
func (*MsgProcessingSpecTest) Run ¶
func (test *MsgProcessingSpecTest) Run(t *testing.T)
func (*MsgProcessingSpecTest) TestName ¶
func (test *MsgProcessingSpecTest) TestName() string
type MsgSpecTest ¶
type MsgSpecTest struct { Name string Messages []*qbft.SignedMessage EncodedMessages [][]byte ExpectedRoots [][]byte ExpectedError string }
MsgSpecTest tests encoding and decoding of a msg
func (*MsgSpecTest) Run ¶
func (test *MsgSpecTest) Run(t *testing.T)
func (*MsgSpecTest) TestName ¶
func (test *MsgSpecTest) TestName() string
type RoundRobinSpecTest ¶
type RoundRobinSpecTest struct { Name string Heights []qbft.Height Rounds []qbft.Round Proposers []types.OperatorID }
func (*RoundRobinSpecTest) Run ¶
func (test *RoundRobinSpecTest) Run(t *testing.T)
func (*RoundRobinSpecTest) TestName ¶
func (test *RoundRobinSpecTest) TestName() string
type RunInstanceData ¶
type RunInstanceData struct { InputValue []byte InputMessages []*qbft.SignedMessage ControllerPostRoot string ExpectedTimerState *testingutils.TimerState ExpectedDecidedState DecidedState }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.