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

Function CreateTempFileBinary

test/setup.go:271–278  ·  view source on GitHub ↗
(t *testing.T, data []byte)

Source from the content-addressed store, hash-verified

269}
270
271func CreateTempFileBinary(t *testing.T, data []byte) string {
272 path := TempFile(t)
273 err := os.WriteFile(path, data, 0600)
274 if err != nil {
275 t.Fatalf("Error writing file '%s': %v", path, err)
276 }
277 return path
278}
279
280func ParseOutput(t *testing.T, output string) map[string]interface{} {
281 stdout := map[string]interface{}{}

Callers 4

TestUploadLargeFileFunction · 0.92
CreateTempFileFunction · 0.85

Calls 1

TempFileFunction · 0.85

Tested by 3

TestUploadLargeFileFunction · 0.74