MCPcopy
hub / github.com/klauspost/compress / parse

Method parse

zstd/seqdec_test.go:136–143  ·  view source on GitHub ↗
(fn string)

Source from the content-addressed store, hash-verified

134}
135
136func (s *testSequence) parse(fn string) (ok bool) {
137 n, err := fmt.Sscanf(fn, "n-%d-lits-%d-prev-%d-%d-%d-win-%d.blk", &s.n, &s.lits, &s.prevOffsets[0], &s.prevOffsets[1], &s.prevOffsets[2], &s.win)
138 ok = err == nil && n == 6
139 if !ok {
140 fmt.Println("Unable to parse:", err, n)
141 }
142 return ok
143}
144
145func readDecoders(tb testing.TB, buf *bytes.Buffer, ref testSequence) sequenceDecs {
146 s := sequenceDecs{

Callers 7

Test_seqdec_decoderFunction · 0.95
Test_seqdec_executeFunction · 0.95
Test_seqdec_decodeSyncFunction · 0.95
benchmark_seqdec_decodeFunction · 0.95
Benchmark_seqdec_executeFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected