Documentation
¶
Overview ¶
Package testfiles provides utility functions and types for working with test files in Go tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
CopyDir is a test helper function to copy all files from the source directory to destination directory. The source .git directory is skipped so temporary test repos do not inherit nested git metadata.
func CopyFile ¶
CopyFile copies a single file from the specified source path to the specified destination directory.
func CreateFile ¶
CreateFile creates a file with the specified content at the given filePath.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.