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/service/commit/list_last_commits_for_tree_test.go')
-rw-r--r--internal/service/commit/list_last_commits_for_tree_test.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/internal/service/commit/list_last_commits_for_tree_test.go b/internal/service/commit/list_last_commits_for_tree_test.go
index 7ff1707de..0078cf825 100644
--- a/internal/service/commit/list_last_commits_for_tree_test.go
+++ b/internal/service/commit/list_last_commits_for_tree_test.go
@@ -168,6 +168,27 @@ func TestSuccessfulListLastCommitsForTreeRequest(t *testing.T) {
limit: 25,
offset: 13,
},
+ {
+ desc: "multiple paths provided",
+ revision: "570e7b2abdd848b95f2f578043fc23bd6f6fd24d",
+ path: []byte("files .gitmodules CONTRIBUTING.md"),
+ info: []commitInfo{
+ {
+ path: []byte("files"),
+ id: "570e7b2abdd848b95f2f578043fc23bd6f6fd24d",
+ },
+ {
+ path: []byte(".gitmodules"),
+ id: "6f6d7e7ed97bb5f0054f2b1df789b39ca89b6ff9",
+ },
+ {
+ path: []byte("CONTRIBUTING.md"),
+ id: "6d394385cf567f80a8fd85055db1ab4c5295806f",
+ },
+ },
+ limit: 5,
+ offset: 0,
+ },
}
for _, testCase := range testCases {
@@ -208,6 +229,7 @@ func TestSuccessfulListLastCommitsForTreeRequest(t *testing.T) {
counter++
}
}
+ require.Equal(t, len(testCase.info), counter)
})
}
}