tests

package
v0.3.7-b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgProcessingSpecTest added in v0.2.7

type MsgProcessingSpecTest struct {
	Name                    string
	Runner                  ssv.Runner
	Duty                    *types.Duty
	Messages                []*types.SSVMessage
	PostDutyRunnerStateRoot string
	PostDutyRunnerState     types.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         []*types.SignedPartialSignatureMessage
	BeaconBroadcastedRoots []string
	DontStartDuty          bool // if set to true will not start a duty for the runner
	ExpectedError          string
}

func (*MsgProcessingSpecTest) GetPostState added in v0.3.1

func (test *MsgProcessingSpecTest) GetPostState() (interface{}, error)

func (*MsgProcessingSpecTest) Run added in v0.2.7

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

Run as an individual test

func (*MsgProcessingSpecTest) RunAsPartOfMultiTest added in v0.3.1

func (test *MsgProcessingSpecTest) RunAsPartOfMultiTest(t *testing.T)

RunAsPartOfMultiTest runs the test as part of a MultiMsgProcessingSpecTest

func (*MsgProcessingSpecTest) TestName added in v0.2.7

func (test *MsgProcessingSpecTest) TestName() string

type MultiMsgProcessingSpecTest added in v0.2.7

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

func (*MultiMsgProcessingSpecTest) GetPostState added in v0.3.1

func (tests *MultiMsgProcessingSpecTest) GetPostState() (interface{}, error)

func (*MultiMsgProcessingSpecTest) Run added in v0.2.7

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

func (*MultiMsgProcessingSpecTest) TestName added in v0.2.7

func (tests *MultiMsgProcessingSpecTest) TestName() string

type SpecTest

type SpecTest interface {
	TestName() string
	Run(t *testing.T)
	GetPostState() (interface{}, error)
}

type TestF added in v0.3.1

type TestF func() SpecTest

Jump to

Keyboard shortcuts

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