Save it and make sure it shows up in new form
(t *testing.T, config *configfile.ConfigFile, configDir string)
| 282 | |
| 283 | // Save it and make sure it shows up in new form |
| 284 | func saveConfigAndValidateNewFormat(t *testing.T, config *configfile.ConfigFile, configDir string) string { |
| 285 | t.Helper() |
| 286 | assert.NilError(t, config.Save()) |
| 287 | |
| 288 | buf, err := os.ReadFile(filepath.Join(configDir, ConfigFileName)) |
| 289 | assert.NilError(t, err) |
| 290 | assert.Check(t, is.Contains(string(buf), `"auths":`)) |
| 291 | return string(buf) |
| 292 | } |
| 293 | |
| 294 | func TestConfigDir(t *testing.T) { |
| 295 | tmpHome := t.TempDir() |
no test coverage detected
searching dependent graphs…