Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dir ¶
type Dir struct { Path string // contains filtered or unexported fields }
func (Dir) CheckEmpty ¶
func (d Dir) CheckEmpty()
Check whether the given directory is empty. Marks test failed on problems, and on any files seen.
func (Dir) Subdir ¶
Utility function to create a new subdirectory. This can be used to have more predictable path names in a test that needs multiple temp directories: only make the top one have a random name, name subdirectories by their role in the test.
Name must be a valid single path segment, no slashes.
Returns an absolute path.
Click to show internal directories.
Click to hide internal directories.