MCPcopy Index your code
hub / github.com/go-task/task / TestGetConfig_TempDir

Function TestGetConfig_TempDir

taskrc/taskrc_test.go:115–127  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

113}
114
115func TestGetConfig_TempDir(t *testing.T) { //nolint:paralleltest // cannot run in parallel
116 _, _, localDir := setupDirs(t)
117
118 writeFile(t, localDir, ".taskrc.yml", `
119temp-dir: .task-cache
120`)
121
122 cfg, err := GetConfig(localDir)
123 require.NoError(t, err)
124 require.NotNil(t, cfg)
125 require.NotNil(t, cfg.TempDir)
126 assert.Equal(t, ".task-cache", *cfg.TempDir)
127}
128
129func TestGetConfig_TempDirMergePrecedence(t *testing.T) { //nolint:paralleltest // cannot run in parallel
130 xdgConfigDir, homeDir, localDir := setupDirs(t)

Callers

nothing calls this directly

Calls 3

setupDirsFunction · 0.85
GetConfigFunction · 0.85
writeFileFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…