mirror of
https://github.com/restic/restic.git
synced 2026-11-06 07:19:21 +00:00
repository: add Checker() method to repository to replace unchecked cast
This commit is contained in:
1 parent
189b295c30
commit
f0955fa931
8 files changed
+20
-13
No files matched your search
@@ -3,12 +3,10 @@ package checker
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/restic/restic/internal/restic"
|
||||
)
|
||||
|
||||
// TestCheckRepo runs the checker on repo.
|
||||
func TestCheckRepo(t testing.TB, repo restic.Repository) {
|
||||
func TestCheckRepo(t testing.TB, repo checkerRepository) {
|
||||
chkr := New(repo, true)
|
||||
|
||||
hints, errs := chkr.LoadIndex(context.TODO(), nil)
|
||||
|
||||
Reference in new issue
Block a user