Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TempDir ¶
type TempDir string
TempDir represents a temporary directory which can easily be removed and is a bit more convenient that using ioutil.Tempdir when you are writing tests.
Typical usage:
func TestSomething(t *testing.T) { tmpDir := testutil.CreateTempDir(t) defer tmpDir.Remove(t) ... // use tmpDir.String() to get the name }
func CreateTempDir ¶
CreateTempDir creates a temporary directory.
Click to show internal directories.
Click to hide internal directories.