Documentation ¶
Overview ¶
Package testwrite contains functionality to write files for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToDir ¶
BytesToDir writes the given bytes to a file named fileName inside an arbitrary directory and returns the name of the directory. The file and the directory are removed when the test finishes.
func BytesToFile ¶
BytesToFile writes the given bytes to an arbitrary file and returns the file name. Different invocations return different file names. The file is removed when the test finishes.
func BytesToFileInExistingDir ¶
BytesToFileInExistingDir writes the given bytes to a file called name in the given directory and returns the full file name. dir must be an existing directory. The file is removed when the test finishes.
Types ¶
This section is empty.