futuremsg

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerSyncSpecTest

type ControllerSyncSpecTest struct {
	Name                 string
	InputMessages        []*qbft.SignedMessage
	SyncDecidedCalledCnt int
	ControllerPostRoot   string
	ExpectedError        string
}

func Cleanup

func Cleanup() *ControllerSyncSpecTest

Cleanup tests cleaning up future msgs container

func DuplicateSigner

func DuplicateSigner() *ControllerSyncSpecTest

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

func F1FutureMsgs

func F1FutureMsgs() *ControllerSyncSpecTest

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

func InvalidMsg

func InvalidMsg() *ControllerSyncSpecTest

InvalidMsg tests future msg invalid msg

func MultiSigners

func MultiSigners() *ControllerSyncSpecTest

MultiSigners tests future msg with multiple signers

func NoSigners

func NoSigners() *ControllerSyncSpecTest

NoSigners tests future msg with no signers

func UnknownSigner

func UnknownSigner() *ControllerSyncSpecTest

UnknownSigner tests future msg signed by unknown signer

func WrongSig

func WrongSig() *ControllerSyncSpecTest

WrongSig tests future msg with invalid sig

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