| 82 | } |
| 83 | |
| 84 | func TestGetConfig_OnlyHome(t *testing.T) { //nolint:paralleltest // cannot run in parallel |
| 85 | _, homeDir, localDir := setupDirs(t) |
| 86 | |
| 87 | writeFile(t, homeDir, ".taskrc.yml", homeConfigYAML) |
| 88 | |
| 89 | cfg, err := GetConfig(localDir) |
| 90 | assert.NoError(t, err) |
| 91 | assert.Equal(t, &ast.TaskRC{ |
| 92 | Version: nil, |
| 93 | Experiments: map[string]int{ |
| 94 | "FOO": 2, |
| 95 | "BAR": 2, |
| 96 | }, |
| 97 | }, cfg) |
| 98 | } |
| 99 | |
| 100 | func TestGetConfig_OnlyLocal(t *testing.T) { //nolint:paralleltest // cannot run in parallel |
| 101 | _, _, localDir := setupDirs(t) |