newduty

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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 MultiStartNewRunnerDutySpecTest

type MultiStartNewRunnerDutySpecTest struct {
	Name  string
	Tests []*StartNewRunnerDutySpecTest
}

func ConsensusNotStarted

func ConsensusNotStarted() *MultiStartNewRunnerDutySpecTest

ConsensusNotStarted tests starting duty after prev already started but for some duties' consensus didn't start because pre-consensus didnt get quorum (different duties will enable starting a new duty)

func Finished

Finished tests a valid start duty after finished prev

func NotDecided

func NotDecided() *MultiStartNewRunnerDutySpecTest

NotDecided tests starting duty before finished or decided

func PostDecided

func PostDecided() *MultiStartNewRunnerDutySpecTest

PostDecided tests a valid start duty before finished and after decided

func PostFutureDecided

func PostFutureDecided() *MultiStartNewRunnerDutySpecTest

PostFutureDecided tests starting duty after a future decided

func PostInvalidDecided

func PostInvalidDecided() *MultiStartNewRunnerDutySpecTest

PostInvalidDecided tests starting a new duty after prev was decided with an invalid decided value

func PostWrongDecided

func PostWrongDecided() *MultiStartNewRunnerDutySpecTest

PostWrongDecided tests starting a new duty after prev was decided wrongly (future decided)

func Valid

Valid tests a valid start duty

func (*MultiStartNewRunnerDutySpecTest) Run

func (tests *MultiStartNewRunnerDutySpecTest) Run(t *testing.T)

func (*MultiStartNewRunnerDutySpecTest) TestName

func (tests *MultiStartNewRunnerDutySpecTest) TestName() string

type StartNewRunnerDutySpecTest

type StartNewRunnerDutySpecTest struct {
	Name                    string
	Runner                  ssv.Runner
	Duty                    *types.Duty
	PostDutyRunnerStateRoot string
	OutputMessages          []*ssv.SignedPartialSignatureMessage
	ExpectedError           string
}

func (*StartNewRunnerDutySpecTest) Run

func (test *StartNewRunnerDutySpecTest) Run(t *testing.T)

func (*StartNewRunnerDutySpecTest) TestName

func (test *StartNewRunnerDutySpecTest) TestName() string

Jump to

Keyboard shortcuts

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