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

Method OnRecoveryFileWrite

par2/encoder_test.go:30–33  ·  view source on GitHub ↗
(start, count, total int, path string, dataByteCount, byteCount int, err error)

Source from the content-addressed store, hash-verified

28}
29
30func (d testEncoderDelegate) OnRecoveryFileWrite(start, count, total int, path string, dataByteCount, byteCount int, err error) {
31 d.t.Helper()
32 d.t.Logf("OnRecoveryFileWrite(start=%d, count=%d, total=%d, %s, dataByteCount=%d, byteCount=%d, %v)", start, count, total, path, dataByteCount, byteCount, err)
33}
34
35func newEncoderForTest(t *testing.T, fs memfs.MemFS, basePath string, paths []string, sliceByteCount, parityShardCount int) (*Encoder, error) {
36 return newEncoder(testFileIO{t, fs}, testEncoderDelegate{t}, basePath, paths, sliceByteCount, parityShardCount, rsec16.DefaultNumGoroutines())

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected