MCPcopy Create free account
hub / github.com/cloudflare/artifact-fs / writeTestFile

Function writeTestFile

e2e_test.go:72–77  ·  view source on GitHub ↗
(t *testing.T, dir, name, content string)

Source from the content-addressed store, hash-verified

70 dir := filepath.Join(workDir, "packages", pkg)
71 if err := os.MkdirAll(dir, 0o755); err != nil {
72 t.Fatal(err)
73 }
74 writeTestFile(t, dir, "package.json", `{"name":"`+pkg+`","version":"0.0.1"}`+"\n")
75 }
76 wranglerDir := filepath.Join(workDir, "packages", "wrangler")
77 for _, dir := range []string{
78 filepath.Join(wranglerDir, "bin"),
79 filepath.Join(wranglerDir, "nested", "deep"),
80 filepath.Join(wranglerDir, "src"),

Callers 1

createLocalTestRepoFunction · 0.85

Calls 2

JoinMethod · 0.80
WriteFileMethod · 0.65

Tested by

no test coverage detected