(t *testing.T, name string, content string)
| 64 | } |
| 65 | |
| 66 | func 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 | } |
no outgoing calls
no test coverage detected