mirror of
https://github.com/restic/restic.git
synced 2025-08-13 05:27:45 +00:00
Add HashingWriter and HashAppendWriter
This commit is contained in:
@@ -65,7 +65,7 @@ func TestHashingReader(t *testing.T) {
|
||||
|
||||
assert(t, n == int64(size),
|
||||
"HashAppendReader: invalid number of bytes read: got %d, expected %d",
|
||||
n, size+len(expectedHash))
|
||||
n, size)
|
||||
|
||||
resultingHash := rd.Sum(nil)
|
||||
assert(t, bytes.Equal(expectedHash[:], resultingHash),
|
||||
|
Reference in New Issue
Block a user