(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func TestEmptyConfigDir(t *testing.T) { |
| 31 | tmpHome := setupConfigDir(t) |
| 32 | |
| 33 | config, err := Load("") |
| 34 | assert.NilError(t, err) |
| 35 | |
| 36 | expectedConfigFilename := filepath.Join(tmpHome, ConfigFileName) |
| 37 | assert.Check(t, is.Equal(expectedConfigFilename, config.Filename)) |
| 38 | |
| 39 | // Now save it and make sure it shows up in new form |
| 40 | saveConfigAndValidateNewFormat(t, config, tmpHome) |
| 41 | } |
| 42 | |
| 43 | func TestMissingFile(t *testing.T) { |
| 44 | tmpHome := t.TempDir() |
nothing calls this directly
no test coverage detected
searching dependent graphs…