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

Function writeFile

taskrc/taskrc_test.go:53–57  ·  view source on GitHub ↗
(t *testing.T, dir, filename, content string)

Source from the content-addressed store, hash-verified

51}
52
53func writeFile(t *testing.T, dir, filename, content string) {
54 t.Helper()
55 err := os.WriteFile(filepath.Join(dir, filename), []byte(content), 0o644)
56 assert.NoError(t, err)
57}
58
59func TestGetConfig_NoConfigFiles(t *testing.T) { //nolint:paralleltest // cannot run in parallel
60 _, _, localDir := setupDirs(t)

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…