Documentation ¶
Index ¶
- func CompareWithJson(t *testing.T, test any, testName string, testType string)
- func FixIssue178(input *types.ValidatorConsensusData, version spec2.DataVersion) *types.ValidatorConsensusData
- func GetExpectedStateFromScFile(testName string, testType string) (map[string]interface{}, error)
- func GetSCDir(basedir string, testType string) string
- func InitContainers(instance *qbft.Instance)
- func NoErrorEncoding(obj ssz.Marshaler) []byte
- func PrintDiff(source, target interface{}) string
- func SetMessages(instance *qbft.Instance, messages []*types.SignedSSVMessage)
- func SetSignedMessages(instance *qbft.Instance, messages []*types.SignedSSVMessage)
- func UnmarshalStateComparison[T types.Root](basedir string, testName string, testType string, targetState T) (T, error)
- type StateComparison
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareWithJson ¶
CompareWithJson compares the given test with the expected state from the state comparison folder
func FixIssue178 ¶
func FixIssue178(input *types.ValidatorConsensusData, version spec2.DataVersion) *types.ValidatorConsensusData
FixIssue178 fixes consensus data fields which are nil instead of empty slice If we change the fields in ssv_msgs.go it will break a lot of roots, we're slowly fixing them SHOULD BE REMOVED once all tests are fixes see https://github.com/ssvlabs/ssv-spec/issues/178
func InitContainers ¶
InitContainers initializes empty containers for Propose, Prepare, Commit and RoundChange messages
func NoErrorEncoding ¶
func SetMessages ¶
func SetMessages(instance *qbft.Instance, messages []*types.SignedSSVMessage)
func SetSignedMessages ¶
func SetSignedMessages(instance *qbft.Instance, messages []*types.SignedSSVMessage)
Types ¶
type StateComparison ¶
func (*StateComparison) Root ¶
func (stateComp *StateComparison) Root() string
Root returns all runner roots as string
Click to show internal directories.
Click to hide internal directories.