chunker: Allow resetting polynomial

This commit is contained in:
Alexander Neumann committed 2015-04-05 22:53:06 +02:00
1 parent 25e3ac40ee
commit c969a42e8d
2 files changed
+17 -12

No files matched your search

+2 -2
View File
@@ -257,7 +257,7 @@ func TestChunkerReuse(t *testing.T) {
buf := get_random(23, 32*1024*1024)
for i := 0; i < 4; i++ {
ch.Reset(bytes.NewReader(buf))
ch.Reset(bytes.NewReader(buf), testPol)
test_with_data(t, ch, chunks1)
}
}
@@ -300,7 +300,7 @@ func benchmarkChunker(b *testing.B, hash hash.Hash) {
chunks = 0
rd.Seek(0, 0)
ch.Reset(rd)
ch.Reset(rd, testPol)
for {
_, err := ch.Next()