mirror of
https://github.com/restic/restic.git
synced 2025-12-04 13:03:46 +00:00
Move testing logic to test file in internal/pack
This commit is contained in:
@@ -36,7 +36,7 @@ func newPack(t testing.TB, k *crypto.Key, lengths []int) ([]Buf, []byte, uint) {
|
||||
}
|
||||
|
||||
// pack blobs
|
||||
p := pack.NewPacker(k, nil)
|
||||
p := pack.NewPacker(k, new(bytes.Buffer))
|
||||
for _, b := range bufs {
|
||||
p.Add(restic.TreeBlob, b.id, b.data)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user