repository: move lock file handling from restic package

This commit is contained in:
Michael Eischer
2026-06-13 21:31:23 +02:00
parent 7015da44ad
commit b892b1a150
10 changed files with 83 additions and 90 deletions
-5
View File
@@ -158,11 +158,6 @@ func BenchmarkAllVersions(b *testing.B, bench VersionedBenchmark) {
}
}
func TestNewLock(_ *testing.T, repo *Repository, exclusive bool) (*restic.Lock, error) {
// TODO get rid of this test helper
return restic.NewLock(context.TODO(), &internalRepository{repo}, exclusive)
}
// TestCheckRepo runs the checker on repo.
func TestCheckRepo(t testing.TB, repo *Repository) {
chkr := newChecker(repo)