Documentation
¶
Index ¶
- func IsQBFTProposalMessage(msg *types.SignedSSVMessage) bool
- type MsgProcessingSpecTest
- func (test *MsgProcessingSpecTest) GetPostState() (interface{}, error)
- func (t *MsgProcessingSpecTest) MarshalJSON() ([]byte, error)
- func (test *MsgProcessingSpecTest) Run(t *testing.T)
- func (test *MsgProcessingSpecTest) RunAsPartOfMultiTest(t *testing.T)
- func (test *MsgProcessingSpecTest) TestName() string
- func (t *MsgProcessingSpecTest) UnmarshalJSON(data []byte) error
- type MsgProcessingSpecTestAlias
- type MultiMsgProcessingSpecTest
- type SpecTest
- type TestF
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsQBFTProposalMessage ¶ added in v1.0.0
func IsQBFTProposalMessage(msg *types.SignedSSVMessage) bool
IsQBFTProposalMessage checks if the message is a QBFT proposal message
Types ¶
type MsgProcessingSpecTest ¶
type MsgProcessingSpecTest struct { Name string Runner ssv.Runner Duty types.Duty Messages []*types.SignedSSVMessage // DecidedSlashable makes the decided value slashable. Simulates consensus instances running in parallel. DecidedSlashable bool 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.PartialSignatureMessages BeaconBroadcastedRoots []string DontStartDuty bool // if set to true will not start a duty for the runner ExpectedError string }
func (*MsgProcessingSpecTest) GetPostState ¶
func (test *MsgProcessingSpecTest) GetPostState() (interface{}, error)
func (*MsgProcessingSpecTest) MarshalJSON ¶ added in v1.0.0
func (t *MsgProcessingSpecTest) MarshalJSON() ([]byte, error)
func (*MsgProcessingSpecTest) Run ¶
func (test *MsgProcessingSpecTest) Run(t *testing.T)
Run as an individual test
func (*MsgProcessingSpecTest) RunAsPartOfMultiTest ¶
func (test *MsgProcessingSpecTest) RunAsPartOfMultiTest(t *testing.T)
RunAsPartOfMultiTest runs the test as part of a MultiMsgProcessingSpecTest
func (*MsgProcessingSpecTest) TestName ¶
func (test *MsgProcessingSpecTest) TestName() string
func (*MsgProcessingSpecTest) UnmarshalJSON ¶ added in v1.0.0
func (t *MsgProcessingSpecTest) UnmarshalJSON(data []byte) error
type MsgProcessingSpecTestAlias ¶ added in v1.0.0
type MsgProcessingSpecTestAlias struct { Name string Runner ssv.Runner // No duty from type types.Duty Messages []*types.SignedSSVMessage DecidedSlashable bool PostDutyRunnerStateRoot string PostDutyRunnerState types.Root `json:"-"` OutputMessages []*types.PartialSignatureMessages BeaconBroadcastedRoots []string DontStartDuty bool ExpectedError string ValidatorDuty *types.ValidatorDuty `json:"ValidatorDuty,omitempty"` CommitteeDuty *types.CommitteeDuty `json:"CommitteeDuty,omitempty"` }
Create alias without duty
type MultiMsgProcessingSpecTest ¶
type MultiMsgProcessingSpecTest struct { Name string Tests []*MsgProcessingSpecTest }
func (*MultiMsgProcessingSpecTest) GetPostState ¶
func (tests *MultiMsgProcessingSpecTest) GetPostState() (interface{}, error)
func (*MultiMsgProcessingSpecTest) Run ¶
func (tests *MultiMsgProcessingSpecTest) Run(t *testing.T)
func (*MultiMsgProcessingSpecTest) TestName ¶
func (tests *MultiMsgProcessingSpecTest) TestName() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.