testing

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagRegInt32 = iota + 1
	TagRegInt64
	TagRegUint32
	TagRegUint64
	TagRegFloat32
	TagRegFloat64
	TagRegBool
	TagRegString
	TagRegBytes
	TagRegEntity

	TagArrInt32
	TagArrInt64
	TagArrUint32
	TagArrUint64
	TagArrFloat32
	TagArrFloat64
	TagArrBool
	TagArrString
	TagArrBytes
	TagArrEntity
)

Variables

This section is empty.

Functions

func ArrangeEncodeDecode

func ArrangeEncodeDecode() (*MessageDef, *Entity)

func AssertEncodeDecode

func AssertEncodeDecode(t *testing.T, def *MessageDef, entity *Entity)

Types

type TestBuilder

type TestBuilder struct {
	*RegistryBuilder
}

Attaches the methods for the builder to create the test message definitions.

func (*TestBuilder) CreateTestMessage

func (rb *TestBuilder) CreateTestMessage(key interface{}, namespace, name string) *MessageDefBuilder

Jump to

Keyboard shortcuts

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