Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/helper/repo_test.go')
-rw-r--r--internal/helper/repo_test.go64
1 files changed, 0 insertions, 64 deletions
diff --git a/internal/helper/repo_test.go b/internal/helper/repo_test.go
deleted file mode 100644
index 1da084b50..000000000
--- a/internal/helper/repo_test.go
+++ /dev/null
@@ -1,64 +0,0 @@
-package helper
-
-import (
- "testing"
-
- "github.com/stretchr/testify/assert"
- "gitlab.com/gitlab-org/gitaly/v16/internal/testhelper"
- "gitlab.com/gitlab-org/gitaly/v16/proto/go/gitalypb"
-)
-
-func TestMain(m *testing.M) {
- testhelper.Run(m)
-}
-
-func TestRepoPathEqual(t *testing.T) {
- testCases := []struct {
- desc string
- a, b *gitalypb.Repository
- equal bool
- }{
- {
- desc: "equal",
- a: &gitalypb.Repository{
- StorageName: "default",
- RelativePath: "repo.git",
- },
- b: &gitalypb.Repository{
- StorageName: "default",
- RelativePath: "repo.git",
- },
- equal: true,
- },
- {
- desc: "different storage",
- a: &gitalypb.Repository{
- StorageName: "default",
- RelativePath: "repo.git",
- },
- b: &gitalypb.Repository{
- StorageName: "storage2",
- RelativePath: "repo.git",
- },
- equal: false,
- },
- {
- desc: "different path",
- a: &gitalypb.Repository{
- StorageName: "default",
- RelativePath: "repo.git",
- },
- b: &gitalypb.Repository{
- StorageName: "default",
- RelativePath: "repo2.git",
- },
- equal: false,
- },
- }
-
- for _, tc := range testCases {
- t.Run(tc.desc, func(t *testing.T) {
- assert.Equal(t, tc.equal, RepoPathEqual(tc.a, tc.b))
- })
- }
-}