MCPcopy Create free account
hub / github.com/UiPath/uipathcli / createFile

Function createFile

utils/stream/file_stream_test.go:66–73  ·  view source on GitHub ↗
(t *testing.T, name string, content string)

Source from the content-addressed store, hash-verified

64}
65
66func createFile(t *testing.T, name string, content string) string {
67 path := filepath.Join(t.TempDir(), name)
68 err := os.WriteFile(path, []byte(content), 0600)
69 if err != nil {
70 t.Fatal(fmt.Errorf("Error writing file '%s': %w", path, err))
71 }
72 return path
73}

Callers 2

TestFileStreamSizeFunction · 0.70
TestFileStreamDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected