Documentation ¶
Overview ¶
Package testutil contains miscellaneous testing utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientTestSetup ¶
ClientTestSetup sets up zap test logging, intercepts HTTP requests using gock, and creates a context with the zap logger embedded.
func GockLogObserver ¶
func GockLogObserver(logger *zap.Logger) gock.ObserverFunc
GockLogObserver returns a gock.ObserverFunc that logs HTTP requests to a zap Logger.
func LoadTestData ¶
LoadTestData is a helper to load test data from a `testdata` directory relaive to the CWD.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.