testutil

package
v0.0.0-...-b5edfa1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchSerialize

func BenchSerialize(b *testing.B, constructor func(zero bool) Message, testData []byte)

func Create

func Create(t testing.TB, f func() (Message, []byte))

func TestAll

func TestAll(t testing.TB, constructor func(zero bool) Message, testData []byte)

func TestSerialize

func TestSerialize(t *testing.T, constructor func(zero bool) Message, testData []byte)

Types

type Message

type Message interface {
	encoding.BinaryMarshaler
	encoding.BinaryUnmarshaler
	Len() int
	Append([]byte) ([]byte, error)
}

Jump to

Keyboard shortcuts

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