[PR #2381] [MERGED] Fix tests code to prevent some runtime errors #16376

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2381
Author: @Morlinest
Created: 8/24/2017
Status: Merged
Merged: 8/28/2017
Merged by: @lafriks

Base: masterHead: fix/tests-runtime-errors


📝 Commits (2)

  • b053af6 Fix tests code to prevent some runtime errors
  • 1a9b00a Reduce nesting

📊 Changes

15 files changed (+182 additions, -151 deletions)

View changed files

📝 integrations/api_issue_label_test.go (+3 -2)
📝 models/action_test.go (+25 -21)
📝 models/admin_test.go (+7 -5)
📝 models/gpg_key_test.go (+3 -2)
📝 models/issue_label_test.go (+7 -5)
📝 models/notification_test.go (+4 -3)
📝 models/org_test.go (+54 -46)
📝 models/pull_test.go (+8 -6)
📝 models/star_test.go (+10 -7)
📝 models/status_test.go (+1 -2)
📝 models/token_test.go (+10 -8)
📝 models/update_test.go (+10 -10)
📝 models/user_mail_test.go (+9 -7)
📝 models/user_openid_test.go (+9 -11)
📝 models/webhook_test.go (+22 -16)

📄 Description

Trying to improve tests code as in #2376.


🔄 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/2381 **Author:** [@Morlinest](https://github.com/Morlinest) **Created:** 8/24/2017 **Status:** ✅ Merged **Merged:** 8/28/2017 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `fix/tests-runtime-errors` --- ### 📝 Commits (2) - [`b053af6`](https://github.com/go-gitea/gitea/commit/b053af69810b6314b375917430079a329e4c9506) Fix tests code to prevent some runtime errors - [`1a9b00a`](https://github.com/go-gitea/gitea/commit/1a9b00a265d98841fc074616439e4b712a881cf3) Reduce nesting ### 📊 Changes **15 files changed** (+182 additions, -151 deletions) <details> <summary>View changed files</summary> 📝 `integrations/api_issue_label_test.go` (+3 -2) 📝 `models/action_test.go` (+25 -21) 📝 `models/admin_test.go` (+7 -5) 📝 `models/gpg_key_test.go` (+3 -2) 📝 `models/issue_label_test.go` (+7 -5) 📝 `models/notification_test.go` (+4 -3) 📝 `models/org_test.go` (+54 -46) 📝 `models/pull_test.go` (+8 -6) 📝 `models/star_test.go` (+10 -7) 📝 `models/status_test.go` (+1 -2) 📝 `models/token_test.go` (+10 -8) 📝 `models/update_test.go` (+10 -10) 📝 `models/user_mail_test.go` (+9 -7) 📝 `models/user_openid_test.go` (+9 -11) 📝 `models/webhook_test.go` (+22 -16) </details> ### 📄 Description Trying to improve tests code as in #2376. --- <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:09:12 -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#16376