[PR #2575] [MERGED] Add repository search unit and integration tests #16479

Closed
opened 2025-11-02 12:11:36 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2575
Author: @Morlinest
Created: 9/22/2017
Status: Merged
Merged: 10/10/2017
Merged by: @lunny

Base: masterHead: feature/add-repo-search-tests


📝 Commits (10+)

  • f6fca2e Add more repo search tests
  • 0c4383b Add and fix /api/repo/search integration tests
  • 2a848d1 Fix repo search tests
  • c34d0bf Always test returned repos length
  • dbba93a Add test with lower pagesize limit (test more pages)
  • 053da84 Simplify unit tests code
  • b14cacc Simplify and unify integration tests code
  • 5f2b035 Improve test coverage
  • 9f09b27 Temporary fix tests due to bugs in current repo search implementation
  • 86bcf68 Revert removing not nil Searcher

📊 Changes

2 files changed (+174 additions, -7 deletions)

View changed files

📝 integrations/api_repo_test.go (+98 -1)
📝 models/repo_list_test.go (+76 -6)

📄 Description

Extracted from #2371. Adds only tests, no feature/fix. Please read FIXME comments (4x).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/2575 **Author:** [@Morlinest](https://github.com/Morlinest) **Created:** 9/22/2017 **Status:** ✅ Merged **Merged:** 10/10/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `feature/add-repo-search-tests` --- ### 📝 Commits (10+) - [`f6fca2e`](https://github.com/go-gitea/gitea/commit/f6fca2ea66126a58f5e964423c7d1cf9702e216e) Add more repo search tests - [`0c4383b`](https://github.com/go-gitea/gitea/commit/0c4383b45a2a6798ac99738d91128389342a0ffc) Add and fix /api/repo/search integration tests - [`2a848d1`](https://github.com/go-gitea/gitea/commit/2a848d134c4f6de4e5bfd162041b7b8b99da9653) Fix repo search tests - [`c34d0bf`](https://github.com/go-gitea/gitea/commit/c34d0bf2aaa033f0950e8d17942686518d71049c) Always test returned repos length - [`dbba93a`](https://github.com/go-gitea/gitea/commit/dbba93a1ddfa8e8d1e0c134106101bd7a82e7a13) Add test with lower pagesize limit (test more pages) - [`053da84`](https://github.com/go-gitea/gitea/commit/053da84f8de84aad0d3732a22cd274dfa40e9388) Simplify unit tests code - [`b14cacc`](https://github.com/go-gitea/gitea/commit/b14cacc16242a1371d27cf9d395281fc2ea4b3d0) Simplify and unify integration tests code - [`5f2b035`](https://github.com/go-gitea/gitea/commit/5f2b035497bea25fa187490c8f76a973f016c4f2) Improve test coverage - [`9f09b27`](https://github.com/go-gitea/gitea/commit/9f09b2737647d40cc7528ba1c341ee73cc848583) Temporary fix tests due to bugs in current repo search implementation - [`86bcf68`](https://github.com/go-gitea/gitea/commit/86bcf684937477c2531ec1ddbe7ec82711808323) Revert removing not nil Searcher ### 📊 Changes **2 files changed** (+174 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `integrations/api_repo_test.go` (+98 -1) 📝 `models/repo_list_test.go` (+76 -6) </details> ### 📄 Description Extracted from #2371. Adds only tests, no feature/fix. Please read `FIXME` comments (4x). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:11:36 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16479