From 163ab9c0252ddceedfe672e9008a8b05016a82ca Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sun, 12 Jun 2022 14:38:19 +0200 Subject: [PATCH] mock: move to internal/backend --- internal/backend/backend_retry_test.go | 2 +- internal/{ => backend}/mock/backend.go | 0 internal/backend/utils_test.go | 2 +- internal/limiter/limiter_backend_test.go | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename internal/{ => backend}/mock/backend.go (100%) diff --git a/internal/backend/backend_retry_test.go b/internal/backend/backend_retry_test.go index 4013f4ea5..e8f4d7315 100644 --- a/internal/backend/backend_retry_test.go +++ b/internal/backend/backend_retry_test.go @@ -7,8 +7,8 @@ import ( "io/ioutil" "testing" + "github.com/restic/restic/internal/backend/mock" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/mock" "github.com/restic/restic/internal/restic" "github.com/restic/restic/internal/test" ) diff --git a/internal/mock/backend.go b/internal/backend/mock/backend.go similarity index 100% rename from internal/mock/backend.go rename to internal/backend/mock/backend.go diff --git a/internal/backend/utils_test.go b/internal/backend/utils_test.go index 0841a57e4..2e77fa9bd 100644 --- a/internal/backend/utils_test.go +++ b/internal/backend/utils_test.go @@ -10,8 +10,8 @@ import ( "github.com/restic/restic/internal/backend" "github.com/restic/restic/internal/backend/mem" + "github.com/restic/restic/internal/backend/mock" "github.com/restic/restic/internal/errors" - "github.com/restic/restic/internal/mock" "github.com/restic/restic/internal/restic" rtest "github.com/restic/restic/internal/test" ) diff --git a/internal/limiter/limiter_backend_test.go b/internal/limiter/limiter_backend_test.go index 10e216be9..1014dbed1 100644 --- a/internal/limiter/limiter_backend_test.go +++ b/internal/limiter/limiter_backend_test.go @@ -8,7 +8,7 @@ import ( "io" "testing" - "github.com/restic/restic/internal/mock" + "github.com/restic/restic/internal/backend/mock" "github.com/restic/restic/internal/restic" rtest "github.com/restic/restic/internal/test" )