Documentation
¶
Overview ¶
Package testutils contains utility functions for unit and integration tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDirOrDie ¶
CreateDirOrDie creates a directory at the given path.
This function returns the path to the created directory. This function panics on error.
func CreateFileOrDie ¶
CreateFileOrDie creates a file with the given text.
This function returns the path to the created file. This function panics on error.
func CreateTempDirOrDie ¶
CreateTempDirOrDie creates a temporary directory.
This function returns the path to the created directory and a cleanup function that should be deferred by the caller. This function panics on error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.