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

Function newDecoderForTest

par1/decoder_test.go:176–178  ·  view source on GitHub ↗
(t *testing.T, fs memfs.MemFS, indexFile string)

Source from the content-addressed store, hash-verified

174}
175
176func newDecoderForTest(t *testing.T, fs memfs.MemFS, indexFile string) (*Decoder, error) {
177 return newDecoder(testFileIO{t, fs}, testDecoderDelegate{t}, indexFile)
178}
179
180func perturbFile(t *testing.T, fs memfs.MemFS, path string) {
181 data, err := fs.ReadFile(path)

Callers 5

testFileCountsFunction · 0.70
testVerifyAllDataFunction · 0.70
TestBadFilenameFunction · 0.70
TestSetHashMismatchFunction · 0.70
testDecoderRepairFunction · 0.70

Calls 1

newDecoderFunction · 0.70

Tested by

no test coverage detected