github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/configuration/global/paths_test.go (about) 1 package global 2 3 import ( 4 "testing" 5 ) 6 7 // TestConfigurationPath tests that ConfigurationPath succeeds and returns a 8 // non-empty path. 9 func TestConfigurationPath(t *testing.T) { 10 if path, err := ConfigurationPath(); err != nil { 11 t.Fatal("unable to compute global configuration path:", err) 12 } else if path == "" { 13 t.Error("global configuration path is empty") 14 } 15 }