Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Dir = "logdir" MetaDir = "./meta" Files = []string{"f3", "f2", "f1"} Contents = []string{"223456789", "123456789", "123456789"} )
Functions ¶
func CreateDir ¶
func CreateDir()
CreateDir creates a new directory with default permission. It does not create missing parent directories and will return error if any parent directory does not exist.
func CreateFile ¶
CreateFile creates an empty file in given path.
func CreateFiles ¶
func CreateFiles(interval int)
CreateFiles creates dummy files with dummy content. It delays given interval in milliseconds between creation of each file. It does not create missing parent directories and will return error if any parent directory does not exist.
func DestroyDir ¶
func DestroyDir()
DestroyDir removes all directories that are created during testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.