Documentation ¶
Overview ¶
Package test contains helper and utility functions for use primarily in tests.
It is generally not a good idea to use anything in this package in production code, unless you're very familiar with that code and its performance characteristics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JSONRoundTrip ¶
func JSONRoundTrip(src interface{}, target interface{}) error
JSONRoundTrip round trips src to JSON and back out into target
This function is primarily intended for translating a map to a configuration struct, and intended for use in tests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.