test

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2018 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func CreateFile(fileName string, content string)

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 DeleteFile

func DeleteFile(fpath string)

DeleteFile removes file with given path.

func DestroyDir

func DestroyDir()

DestroyDir removes all directories that are created during testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL