Documentation ¶
Index ¶
- func CompareWithJson(t *testing.T, test any, testName string, testType string)
- func FixIssue178(input *types.ConsensusData, version spec2.DataVersion) *types.ConsensusData
- 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.SSVMessage)
- func SetSignedMessages(instance *qbft.Instance, messages []*qbft.SignedMessage)
- 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 ¶ added in v0.3.6
CompareWithJson compares the given test with the expected state from the state comparison folder
func FixIssue178 ¶
func FixIssue178(input *types.ConsensusData, version spec2.DataVersion) *types.ConsensusData
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/bloxapp/ssv-spec/issues/178
func GetExpectedStateFromScFile ¶ added in v0.3.6
func InitContainers ¶
InitContainers initializes empty containers for Propose, Prepare, Commit and RoundChange messages
func NoErrorEncoding ¶
func SetMessages ¶
func SetMessages(instance *qbft.Instance, messages []*types.SSVMessage)
func SetSignedMessages ¶
func SetSignedMessages(instance *qbft.Instance, messages []*qbft.SignedMessage)
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.