codectest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(t testing.TB, c Codec, tc Case)

func AssertAll

func AssertAll(t *testing.T, c Codec, tests []Case)

Types

type Case

type Case struct {
	Name             string
	Value            any
	WantMarshalErr   error
	WantUnmarshalErr error
}

type Codec

type Codec = codecutil.Codec

Jump to

Keyboard shortcuts

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