MCPcopy
hub / github.com/wal-g/wal-g / TestGetDataFolderPath_Xlog

Function TestGetDataFolderPath_Xlog

internal/configure_test.go:93–103  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

91}
92
93func 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
105func TestGetDataFolderPath_WalIgnoreXlog(t *testing.T) {
106 parentDir := prepareDataFolder(t, "pg_xlog")

Callers

nothing calls this directly

Calls 5

CleanupFunction · 0.92
GetDataFolderPathFunction · 0.92
prepareDataFolderFunction · 0.85
JoinMethod · 0.80
resetToDefaultsFunction · 0.70

Tested by

no test coverage detected