ssvmsg

package
v0.0.0-...-0b52aac Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingTest

type EncodingTest struct {
	Name         string
	Data         []byte
	ExpectedRoot [32]byte
}

func Encoding

func Encoding() *EncodingTest

Encoding tests encoding of a ssv message

func (*EncodingTest) Run

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

func (*EncodingTest) TestName

func (test *EncodingTest) TestName() string

type SSVMessageTest

type SSVMessageTest struct {
	Name               string
	MessageIDs         []types.MessageID
	BelongsToValidator bool
}

func MsgIDBelongs

func MsgIDBelongs() *SSVMessageTest

MsgIDBelongs tests msg id belonging to validator id

func MsgIDDoesntBelongs

func MsgIDDoesntBelongs() *SSVMessageTest

MsgIDDoesntBelongs tests msg id doesn't belonging to validator id

func (*SSVMessageTest) Run

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

func (*SSVMessageTest) TestName

func (test *SSVMessageTest) TestName() string

Jump to

Keyboard shortcuts

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