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

Function TestGetDataFolderPath_FolderNotExist

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

Source from the content-addressed store, hash-verified

67}
68
69func TestGetDataFolderPath_FolderNotExist(t *testing.T) {
70 parentDir := prepareDataFolder(t, "someOtherFolder")
71 defer testtools.Cleanup(t, parentDir)
72
73 viper.Set(config.PgDataSetting, parentDir)
74
75 actual := internal.GetDataFolderPath()
76
77 assert.Equal(t, path.Join(internal.GetDefaultDataFolderPath(), "walg_data"), actual)
78 resetToDefaults()
79}
80
81func TestGetDataFolderPath_Wal(t *testing.T) {
82 parentDir := prepareDataFolder(t, "pg_wal")

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected