MCPcopy Create free account
hub / github.com/rilldata/rill / putFiles

Function putFiles

cli/cmd/sudo/embed/embed_test.go:56–64  ·  view source on GitHub ↗
(t *testing.T, baseDir string, files map[string]string)

Source from the content-addressed store, hash-verified

54}
55
56func putFiles(t *testing.T, baseDir string, files map[string]string) {
57 t.Helper()
58 for path, content := range files {
59 path = filepath.Join(baseDir, path)
60 dir := filepath.Dir(path)
61 require.NoError(t, os.MkdirAll(dir, 0755))
62 require.NoError(t, os.WriteFile(path, []byte(content), 0644))
63 }
64}

Callers 1

TestEmbedOpenFunction · 0.70

Calls 1

MkdirAllMethod · 0.65

Tested by

no test coverage detected