tests

package
v0.0.0-...-48cccef Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyCodecsWithMaps

func VerifyCodecsWithMaps(t *testing.T, encoder Encoder, decoder UnmarshalDecoder)

func VerifyCodecsWithStructs

func VerifyCodecsWithStructs(t *testing.T, encoder Encoder, decoder UnmarshalDecoder)

Types

type Encoder

type Encoder interface {
	Encode(context.Context, io.Writer, interface{}) error
}

Encoder defines an interface representing a generic encoder which expects a interface{} type has it's encoding target.

type UnmarshalDecoder

type UnmarshalDecoder interface {
	Decode(context.Context, io.Reader, interface{}) error
}

TargetDecoder defines an interface representing a target decoder which expects a type to decode into.

Jump to

Keyboard shortcuts

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