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

Function newEncoderForTest

par2/encoder_test.go:35–37  ·  view source on GitHub ↗
(t *testing.T, fs memfs.MemFS, basePath string, paths []string, sliceByteCount, parityShardCount int)

Source from the content-addressed store, hash-verified

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())
37}
38
39func makeEncoderMemFS(workingDir string) memfs.MemFS {
40 return memfs.MakeMemFS(workingDir, map[string][]byte{

Callers 3

TestEncodeParityFunction · 0.70
testWriteParityFunction · 0.70

Calls 2

DefaultNumGoroutinesFunction · 0.92
newEncoderFunction · 0.70

Tested by

no test coverage detected