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

Function TestGetConfig_OnlyHome

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

Source from the content-addressed store, hash-verified

82}
83
84func 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
100func TestGetConfig_OnlyLocal(t *testing.T) { //nolint:paralleltest // cannot run in parallel
101 _, _, 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…