(t *testing.T)
| 67 | } |
| 68 | |
| 69 | func 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 | |
| 81 | func TestGetDataFolderPath_Wal(t *testing.T) { |
| 82 | parentDir := prepareDataFolder(t, "pg_wal") |
nothing calls this directly
no test coverage detected