func TestTempFile(t *testing.T) { … } func TestTempFile_pattern(t *testing.T) { … } const patternHasSeparator … func TestTempFile_BadPattern(t *testing.T) { … } func TestTempDir(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 os.TempDir doesn't exist) func TestTempDir_BadDir(t *testing.T) { … } func TestTempDir_BadPattern(t *testing.T) { … }