(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestGetLocalConfig(t *testing.T) { |
| 14 | assert.Equal(t, configFileDefaultPath, getLocalConfigPath(), "read from default connection config path if environment variable is not set") |
| 15 | |
| 16 | os.Setenv(configFilePathEnvironmentVariable, "dir/custom_path.json") |
| 17 | assert.Equal(t, "dir/custom_path.json", getLocalConfigPath()) |
| 18 | } |
| 19 | |
| 20 | func runFakeRedis(username string, password string) (host string, port string, err error) { |
| 21 | s, err := miniredis.Run() |
nothing calls this directly
no test coverage detected