mirror of
https://github.com/restic/restic.git
synced 2025-12-14 01:02:01 +00:00
repository: add Checker() method to repository to replace unchecked cast
This commit is contained in:
@@ -435,7 +435,7 @@ func TestCheckerModifiedData(t *testing.T) {
|
||||
|
||||
// loadTreesOnceRepository allows each tree to be loaded only once
|
||||
type loadTreesOnceRepository struct {
|
||||
restic.Repository
|
||||
*repository.Repository
|
||||
loadedTrees restic.IDSet
|
||||
mutex sync.Mutex
|
||||
DuplicateTree bool
|
||||
@@ -476,7 +476,7 @@ func TestCheckerNoDuplicateTreeDecodes(t *testing.T) {
|
||||
|
||||
// delayRepository delays read of a specific handle.
|
||||
type delayRepository struct {
|
||||
restic.Repository
|
||||
*repository.Repository
|
||||
DelayTree restic.ID
|
||||
UnblockChannel chan struct{}
|
||||
Unblocker sync.Once
|
||||
|
||||
Reference in New Issue
Block a user