ssvmsg

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingTest added in v0.3.0

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 added in v0.3.0

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

func (*EncodingTest) TestName added in v0.3.0

func (test *EncodingTest) TestName() string

type SpecTest added in v0.3.0

type SpecTest struct {
	Name string
	Data []byte
}

func MsgIDBelongs

func MsgIDBelongs() SpecTest

MsgIDBelongs tests msg id belonging to validator id

func MsgIDDoesntBelongs

func MsgIDDoesntBelongs() SpecTest

MsgIDDoesntBelongs tests msg id doesn't belonging to validator id

func (*SpecTest) Run added in v0.3.0

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

func (*SpecTest) TestName added in v0.3.0

func (test *SpecTest) TestName() string

Jump to

Keyboard shortcuts

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