testutil

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorType

type ErrorType string
const (
	MarshalError   ErrorType = "marshal"
	UnmarshalError ErrorType = "unmarshal"
)

type RoundTripSubtest

type RoundTripSubtest struct {
	TestName    string
	InDataJSON  string
	OutDataJSON string
	ExpectError map[ErrorType]string
}

type RoundTripTest

type RoundTripTest struct {
	InSchema string
	GoType   interface{}
	Subtests []RoundTripSubtest
}

func (RoundTripTest) Test

func (test RoundTripTest) Test(t *testing.T)

Jump to

Keyboard shortcuts

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