yamlhelpers

package
v0.8.20 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertMarshal

func AssertMarshal(t *testing.T, b []byte, o interface{}) bool

AssertMarshal unmarshals an object and makes sure that it unmarshals

func AssertMarshalRoundTrip

func AssertMarshalRoundTrip(t *testing.T, o interface{}) bool

AssertMarshalRoundTrip makes sure you can marshal an object and that unmarshalling it produces the same object.

func AssertUnmarshal

func AssertUnmarshal(t *testing.T, b []byte, o interface{}) bool

AssertUnmarshal unmarshals an object and makes sure that it unmarshals

func AssertUnmarshalRoundTrip

func AssertUnmarshalRoundTrip(t *testing.T, b []byte, o interface{}) bool

AssertUnmarshalRoundTrip unmarshals an object, makes sure you can remarshal it, and makes sure that unmarshalling again produces the same object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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