futuremsg

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cleanup

func Cleanup() tests.SpecTest

Cleanup tests cleaning up future msgs container

func DuplicateSigner

func DuplicateSigner() tests.SpecTest

DuplicateSigner tests multiple future msg for the same signer (doesn't trigger futuremsg)

func F1FutureMsgs

func F1FutureMsgs() tests.SpecTest

F1FutureMsgs tests a f+1 future msgs that trigger decided sync

func InvalidMsg

func InvalidMsg() tests.SpecTest

InvalidMsg tests future msg invalid msg

func MultiSigners

func MultiSigners() tests.SpecTest

MultiSigners tests future msg with multiple signers

func NoSigners

func NoSigners() tests.SpecTest

NoSigners tests future msg with no signers

func UnknownSigner

func UnknownSigner() tests.SpecTest

UnknownSigner tests future msg signed by unknown signer

func WrongSig

func WrongSig() tests.SpecTest

WrongSig tests future msg with invalid sig

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

Jump to

Keyboard shortcuts

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