(t *testing.T, data []byte, files ...string)
| 45 | } |
| 46 | |
| 47 | func SetupFilesWithData(t *testing.T, data []byte, files ...string) { |
| 48 | t.Helper() |
| 49 | for _, file := range files { |
| 50 | err := os.WriteFile(file, data, UserFilePerm) |
| 51 | require.NoError(t, err) |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func SetupFiles(t *testing.T, files ...string) { |
| 56 | SetupFilesWithData(t, SampleDataBytes, files...) |
no outgoing calls