Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DuplicateSigner ¶
DuplicateSigner tests multiple future msg for the same signer (doesn't trigger futuremsg)
func F1FutureMsgs ¶
F1FutureMsgs tests a f+1 future msgs that trigger decided sync
func MultiSigners ¶
MultiSigners tests future msg with multiple signers
func UnknownSigner ¶
UnknownSigner tests future msg signed by unknown signer
Types ¶
type ControllerSyncSpecTest ¶
type ControllerSyncSpecTest struct {
Name string
InputMessages []*qbft.SignedMessage
SyncDecidedCalledCnt int
ControllerPostRoot string
ControllerPostState types.Root `json:"-"` // Field is ignored by encoding/json
ExpectedError string
SkipInstanceStart bool
}
func FirstHeightNotStarted ¶ added in v0.3.1
func FirstHeightNotStarted() *ControllerSyncSpecTest
FirstHeightNotStarted tests a future message for special case (first height, instance not started)
func FirstHeightStarted ¶ added in v0.3.1
func FirstHeightStarted() *ControllerSyncSpecTest
FirstHeightStarted tests a future message for special case (first height, instance started)
func (*ControllerSyncSpecTest) GetPostState ¶ added in v0.3.1
func (test *ControllerSyncSpecTest) GetPostState() (interface{}, error)
func (*ControllerSyncSpecTest) Run ¶
func (test *ControllerSyncSpecTest) Run(t *testing.T)
func (*ControllerSyncSpecTest) TestName ¶
func (test *ControllerSyncSpecTest) TestName() string
Click to show internal directories.
Click to hide internal directories.