(path string, data []byte)
| 102 | } |
| 103 | |
| 104 | func (io testFileIO) WriteFile(path string, data []byte) (err error) { |
| 105 | io.t.Helper() |
| 106 | defer func() { |
| 107 | io.t.Helper() |
| 108 | io.t.Logf("WriteFile(%s, %d bytes) => %v", path, len(data), err) |
| 109 | }() |
| 110 | return io.fileIO.WriteFile(path, data) |
| 111 | } |
| 112 | |
| 113 | func buildPAR2Data(t *testing.T, fs memfs.MemFS, basePath string, sliceByteCount, parityShardCount int) (dataShardCount int) { |
| 114 | var recoverySet []fileID |