createFile creates a file with content
(t *testing.T, dir, name, content string)
| 34 | |
| 35 | // createFile creates a file with content |
| 36 | func createFile(t *testing.T, dir, name, content string) string { |
| 37 | filePath := filepath.Join(dir, name) |
| 38 | err := os.WriteFile(filePath, []byte(content), 0644) |
| 39 | require.NoError(t, err, "failed to create file %s", name) |
| 40 | return filePath |
| 41 | } |
| 42 | |
| 43 | // createDartFile creates a dart file with sample content |
| 44 | func createDartFile(t *testing.T, dir, name string) string { |
no outgoing calls