mirror of
https://github.com/restic/restic.git
synced 2026-10-14 05:57:12 +00:00
Move testing logic to test file in internal/pack
This commit is contained in:
1 parent
a23e9c86ba
commit
74a64c47e4
2 files changed
+2
-6
No files matched your search
@@ -25,12 +25,8 @@ type Packer struct {
|
||||
m sync.Mutex
|
||||
}
|
||||
|
||||
// NewPacker returns a new Packer that can be used to pack blobs
|
||||
// together. If wr is nil, a bytes.Buffer is used.
|
||||
// NewPacker returns a new Packer that can be used to pack blobs together.
|
||||
func NewPacker(k *crypto.Key, wr io.Writer) *Packer {
|
||||
if wr == nil {
|
||||
wr = bytes.NewBuffer(nil)
|
||||
}
|
||||
return &Packer{k: k, wr: wr}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user