MCPcopy Create free account
hub / github.com/go-task/task / writeFile

Function writeFile

task_test.go:656–659  ·  view source on GitHub ↗
(t *testing.T, dir, name, content string)

Source from the content-addressed store, hash-verified

654}
655
656func writeFile(t *testing.T, dir, name, content string) {
657 t.Helper()
658 require.NoError(t, os.WriteFile(filepathext.SmartJoin(dir, name), []byte(content), 0o644))
659}
660
661// gitignoreStep writes a set of files then runs the task once, capturing its
662// output as a golden fixture named run.

Callers 1

runMethod · 0.70

Calls 1

SmartJoinFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…