MCPcopy Index your code
hub / github.com/rilldata/rill / putFiles

Function putFiles

cli/cmd/deploy/deploy_test.go:429–438  ·  view source on GitHub ↗
(t *testing.T, baseDir string, files map[string]string)

Source from the content-addressed store, hash-verified

427}
428
429func putFiles(t *testing.T, baseDir string, files map[string]string) {
430 for path, content := range files {
431 path = filepath.Join(baseDir, path)
432 dir := filepath.Dir(path)
433 err := os.MkdirAll(dir, 0755)
434 require.NoError(t, err)
435 err = os.WriteFile(path, []byte(content), 0644)
436 require.NoError(t, err)
437 }
438}
439
440func initRillProject(t *testing.T) string {
441 tempDir := t.TempDir()

Callers 6

TestManagedDeployFunction · 0.70
testSelfHostedDeployFunction · 0.70
initRillProjectFunction · 0.70
initMonorepoFunction · 0.70
initGitWithTwoBranchesFunction · 0.70

Calls 1

MkdirAllMethod · 0.65

Tested by

no test coverage detected