Test helper functions
(t *testing.T, dir, name, content string)
| 174 | |
| 175 | // Test helper functions |
| 176 | func writeFile(t *testing.T, dir, name, content string) { |
| 177 | t.Helper() |
| 178 | path := filepath.Join(dir, name) |
| 179 | os.MkdirAll(filepath.Dir(path), 0755) |
| 180 | err := os.WriteFile(path, []byte(content), 0644) |
| 181 | require.NoError(t, err) |
| 182 | } |
| 183 | |
| 184 | func writeBinaryFile(t *testing.T, dir, name string, size int) { |
| 185 | t.Helper() |
no outgoing calls
no test coverage detected