func TestCreateTemp(t *testing.T) { … } func TestCreateTempPattern(t *testing.T) { … } func TestCreateTempBadPattern(t *testing.T) { … } func TestMkdirTemp(t *testing.T) { … } // test that we return a nice error message if the dir argument to TempDir doesn't // exist (or that it's empty and TempDir doesn't exist) func TestMkdirTempBadDir(t *testing.T) { … } func TestMkdirTempBadPattern(t *testing.T) { … }