MCPcopy Create free account
hub / github.com/akalin/gopar / WriteFile

Method WriteFile

par2/decoder_test.go:104–111  ·  view source on GitHub ↗
(path string, data []byte)

Source from the content-addressed store, hash-verified

102}
103
104func (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
113func buildPAR2Data(t *testing.T, fs memfs.MemFS, basePath string, sliceByteCount, parityShardCount int) (dataShardCount int) {
114 var recoverySet []fileID

Callers

nothing calls this directly

Calls 1

WriteFileMethod · 0.65

Tested by

no test coverage detected