spectest

package
v0.5.0-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMsgProcessing

func RunMsgProcessing(t *testing.T, test *MsgProcessingSpecTest)

Types

type MsgProcessingSpecTest

type MsgProcessingSpecTest struct {
	Name                    string
	Runner                  runner.Runner
	Duty                    *spectypes.Duty
	Messages                []*spectypes.SSVMessage
	PostDutyRunnerStateRoot string
	// OutputMessages compares pre/ post signed partial sigs to output. We exclude consensus msgs as it's tested in consensus
	OutputMessages         []*spectypes.SignedPartialSignatureMessage
	BeaconBroadcastedRoots []string
	DontStartDuty          bool // if set to true will not start a duty for the runner
	ExpectedError          string
}

func (*MsgProcessingSpecTest) TestName

func (test *MsgProcessingSpecTest) TestName() string

type MultiMsgProcessingSpecTest

type MultiMsgProcessingSpecTest struct {
	Name  string
	Tests []*MsgProcessingSpecTest
}

func (*MultiMsgProcessingSpecTest) Run

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

func (*MultiMsgProcessingSpecTest) TestName

func (tests *MultiMsgProcessingSpecTest) TestName() string

type MultiStartNewRunnerDutySpecTest

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

func (*MultiStartNewRunnerDutySpecTest) Run

func (tests *MultiStartNewRunnerDutySpecTest) Run(t *testing.T, logger *zap.Logger)

func (*MultiStartNewRunnerDutySpecTest) TestName

func (tests *MultiStartNewRunnerDutySpecTest) TestName() string

type StartNewRunnerDutySpecTest

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

func (*StartNewRunnerDutySpecTest) Run

func (test *StartNewRunnerDutySpecTest) Run(t *testing.T, logger *zap.Logger)

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