github.com/jpedro/terraform@v0.11.12-beta1/helper/variables/variables_test.go (about) 1 package variables 2 3 import ( 4 "io/ioutil" 5 "path/filepath" 6 "testing" 7 ) 8 9 func testTempFile(t *testing.T) string { 10 return filepath.Join(testTempDir(t), "temp.dat") 11 } 12 13 func testTempDir(t *testing.T) string { 14 d, err := ioutil.TempDir("", "tf") 15 if err != nil { 16 t.Fatalf("err: %s", err) 17 } 18 19 return d 20 }