Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TmpDirPattern is the pattern used for tmp folder creation
TmpDirPattern = "tmp-reva-"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CleanerFunc ¶
type CleanerFunc func()
CleanerFunc is a function to call after creating a TestDir
func NewTestDir ¶
func NewTestDir(src Dir) (tmpdir string, cleanup CleanerFunc, err error)
NewTestDir creates the Dir structure in a local temporary folder
func TmpDir ¶
func TmpDir() (string, CleanerFunc, error)
TmpDir creates a dir in the system temp folder that has TmpDirPattern as prefix
Click to show internal directories.
Click to hide internal directories.