replace some usages of restic.Repository with more specific interface
This should eventually make it easier to test the code.
This commit is contained in:
parent
3424088274
commit
bfb56b78e1
19 changed files with 38 additions and 33 deletions
|
@ -120,7 +120,7 @@ func selectBlobs(t *testing.T, repo restic.Repository, p float32) (list1, list2
|
|||
return list1, list2
|
||||
}
|
||||
|
||||
func listPacks(t *testing.T, repo restic.Repository) restic.IDSet {
|
||||
func listPacks(t *testing.T, repo restic.Lister) restic.IDSet {
|
||||
list := restic.NewIDSet()
|
||||
err := repo.List(context.TODO(), restic.PackFile, func(id restic.ID, size int64) error {
|
||||
list.Insert(id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue