diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2018-10-18 11:14:28 +0800 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2018-10-17 23:14:28 -0400 |
commit | 486e989a3979684ba428a129492881de12ec923a (patch) | |
tree | c3c1c992195be1c36f2726301aca8d408e52e4cf /models/repo_list_test.go | |
parent | e79e9248fd9d539ecc912fcc24e7a669ce98bdaf (diff) | |
download | gitea-486e989a3979684ba428a129492881de12ec923a.tar.gz gitea-486e989a3979684ba428a129492881de12ec923a.zip |
feat(topic): search keyword by splitting provided values by , (#4939)
Diffstat (limited to 'models/repo_list_test.go')
-rw-r--r-- | models/repo_list_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/models/repo_list_test.go b/models/repo_list_test.go index 8f4947dbb2..2f9a149188 100644 --- a/models/repo_list_test.go +++ b/models/repo_list_test.go @@ -237,6 +237,9 @@ func TestSearchRepositoryByTopicName(t *testing.T) { {name: "AllPublic/OnlySearchPublicRepositoriesFromTopic", opts: &SearchRepoOptions{OwnerID: 21, AllPublic: true, Keyword: "graphql", TopicOnly: true}, count: 1}, + {name: "AllPublic/OnlySearchMultipleKeywordPublicRepositoriesFromTopic", + opts: &SearchRepoOptions{OwnerID: 21, AllPublic: true, Keyword: "graphql,golang", TopicOnly: true}, + count: 3}, } for _, testCase := range testCases { |