test

package
v0.0.0-...-f39f649 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenericJSONMarshallingTest

func GenericJSONMarshallingTest(t *testing.T, orig, empty interface{})

GenericJSONMarshallingTest tests that an object can be marshalled and unmarshalled correctly with the golang json marshaller. `orig` should be an instance of the type that you want to test, filled with values. `empty` should be a default contructed object, e.g. &T{}. `empty` must be passed as pointer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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