spectest

package
v1.2.2-unstable-2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: GPL-3.0 Imports: 19 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
	PostDutyRunnerState     spectypes.Root `json:"-"` // Field is ignored by encoding/json
	// 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) RunAsPartOfMultiTest added in v1.1.0

func (test *MsgProcessingSpecTest) RunAsPartOfMultiTest(t *testing.T, logger *zap.Logger)

func (*MsgProcessingSpecTest) TestName

func (test *MsgProcessingSpecTest) TestName() string

type MultiMsgProcessingSpecTest

type MultiMsgProcessingSpecTest struct {
	Name  string
	Tests []*MsgProcessingSpecTest
	// contains filtered or unexported fields
}

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                    *spectypes.Duty
	PostDutyRunnerStateRoot string
	PostDutyRunnerState     spectypes.Root `json:"-"` // Field is ignored by encoding/json
	OutputMessages          []*spectypes.SignedPartialSignatureMessage
	ExpectedError           string
}

func (*StartNewRunnerDutySpecTest) Run

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

func (*StartNewRunnerDutySpecTest) RunAsPartOfMultiTest added in v1.1.0

func (test *StartNewRunnerDutySpecTest) RunAsPartOfMultiTest(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