github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/utils/consts/consts_test.go (about) 1 package consts 2 3 import ( 4 "testing" 5 6 "github.com/lmorg/murex/test/count" 7 ) 8 9 // TestConsts tests the projects constants package 10 func TestTempDir(t *testing.T) { 11 count.Tests(t, 1) 12 13 if TempDir == "" { 14 t.Error("No temp directory specified") 15 } 16 17 if TempDir == tempDir { 18 t.Log("ioutil.TempDir() failed so using fallback path:", tempDir) 19 } 20 }