MCPcopy Create free account
hub / github.com/encodeous/nylon / CreateTempFile

Function CreateTempFile

e2e/passive_roaming_test.go:234–244  ·  view source on GitHub ↗
(t *testing.T, dir, name string, content []byte)

Source from the content-addressed store, hash-verified

232}
233
234func CreateTempFile(t *testing.T, dir, name string, content []byte) string {
235 runDir := filepath.Join(dir, "e2e", "runs", t.Name())
236 if err := os.MkdirAll(runDir, 0755); err != nil {
237 t.Fatal(err)
238 }
239 fPath := filepath.Join(runDir, name)
240 if err := os.WriteFile(fPath, content, 0644); err != nil {
241 t.Fatal(err)
242 }
243 return fPath
244}
245
246var _ = wait.ForLog

Callers 1

TestPassiveRoamingFunction · 0.85

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected