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

Function newDecoderForTest

par2/decoder_test.go:180–182  ·  view source on GitHub ↗
(t *testing.T, fs memfs.MemFS, indexPath string)

Source from the content-addressed store, hash-verified

178}
179
180func newDecoderForTest(t *testing.T, fs memfs.MemFS, indexPath string) (*Decoder, error) {
181 return newDecoder(testFileIO{t, fs}, testDecoderDelegate{t}, indexPath, rsec16.DefaultNumGoroutines())
182}
183
184func makeDecoderMemFS(workingDir string) memfs.MemFS {
185 return memfs.MakeMemFS(workingDir, map[string][]byte{

Callers 9

testCreateFunction · 0.70
testWriteParityFunction · 0.70
testShardCountsFunction · 0.70
testDecoderVerifyFunction · 0.70
TestSetIDMismatchFunction · 0.70
testDecoderRepairFunction · 0.70
TestRepairAddedBytesFunction · 0.70
TestRepairRemovedBytesFunction · 0.70
TestRepairSwappedFilesFunction · 0.70

Calls 2

DefaultNumGoroutinesFunction · 0.92
newDecoderFunction · 0.70

Tested by

no test coverage detected