MCPcopy
hub / github.com/go-task/task / TestGetConfig_OnlyXDG

Function TestGetConfig_OnlyXDG

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

Source from the content-addressed store, hash-verified

65}
66
67func TestGetConfig_OnlyXDG(t *testing.T) { //nolint:paralleltest // cannot run in parallel
68 xdgDir, _, localDir := setupDirs(t)
69
70 writeFile(t, xdgDir, "taskrc.yml", xdgConfigYAML)
71
72 cfg, err := GetConfig(localDir)
73 assert.NoError(t, err)
74 assert.Equal(t, &ast.TaskRC{
75 Version: nil,
76 Experiments: map[string]int{
77 "FOO": 1,
78 "BAR": 1,
79 "BAZ": 1,
80 },
81 }, cfg)
82}
83
84func TestGetConfig_OnlyHome(t *testing.T) { //nolint:paralleltest // cannot run in parallel
85 _, 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…