(t *testing.T)
| 91 | } |
| 92 | |
| 93 | func TestGetDataFolderPath_Xlog(t *testing.T) { |
| 94 | parentDir := prepareDataFolder(t, "pg_xlog") |
| 95 | defer testtools.Cleanup(t, parentDir) |
| 96 | |
| 97 | viper.Set(config.PgDataSetting, parentDir) |
| 98 | |
| 99 | actual := internal.GetDataFolderPath() |
| 100 | |
| 101 | assert.Equal(t, filepath.ToSlash(filepath.Join(parentDir, "pg_xlog", "walg_data")), actual) |
| 102 | resetToDefaults() |
| 103 | } |
| 104 | |
| 105 | func TestGetDataFolderPath_WalIgnoreXlog(t *testing.T) { |
| 106 | parentDir := prepareDataFolder(t, "pg_xlog") |
nothing calls this directly
no test coverage detected