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

Function TestGetConfig_OnlyLocal

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

Source from the content-addressed store, hash-verified

98}
99
100func TestGetConfig_OnlyLocal(t *testing.T) { //nolint:paralleltest // cannot run in parallel
101 _, _, localDir := setupDirs(t)
102
103 writeFile(t, localDir, ".taskrc.yml", localConfigYAML)
104
105 cfg, err := GetConfig(localDir)
106 assert.NoError(t, err)
107 assert.Equal(t, &ast.TaskRC{
108 Version: nil,
109 Experiments: map[string]int{
110 "FOO": 3,
111 },
112 }, cfg)
113}
114
115func TestGetConfig_TempDir(t *testing.T) { //nolint:paralleltest // cannot run in parallel
116 _, _, 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…