0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-12 02:22:45 +01:00
gitea/models/issues
wxiaoguang 0ed160ffea
Refactor tests (#33021)
1. fix incorrect tests, for example: BeanExists doesn't do assert and
shouldn't be used
2. remove unnecessary test functions
3. introduce DumpQueryResult to help to see the database rows during
test (at least I need it)

```
====== DumpQueryResult: SELECT * FROM action_runner_token ======
- # row[0]
  id: 1
  token: xeiWBL5kuTYxGPynHCqQdoeYmJAeG3IzGXCYTrDX
  owner_id: 0
...
```
2024-12-29 01:05:56 +00:00
..
assignees_test.go
assignees.go
comment_code.go
comment_list.go
comment_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
comment.go Issue time estimate, meaningful time tracking (#23113) 2024-12-05 13:07:53 +00:00
content_history_test.go
content_history.go
dependency_test.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
dependency.go
issue_index.go Update golangci-lint to v1.62.2, fix issues (#32845) 2024-12-15 02:31:07 +00:00
issue_label_test.go
issue_label.go
issue_list_test.go
issue_list.go
issue_lock.go
issue_project.go
issue_search.go Add label/author/assignee filters to the user/org home issue list (#32779) 2024-12-11 06:33:24 +00:00
issue_stats.go Add label/author/assignee filters to the user/org home issue list (#32779) 2024-12-11 06:33:24 +00:00
issue_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
issue_update.go Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +08:00
issue_user_test.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
issue_user.go
issue_watch_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
issue_watch.go
issue_xref_test.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
issue_xref.go
issue.go Fix bug of branch/tag selector in the issue sidebar (#32744) 2024-12-13 00:45:06 +00:00
label_test.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
label.go Support org labels when adding labels by label names (#32988) 2024-12-26 19:14:49 +00:00
main_test.go
milestone_list.go
milestone_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
milestone.go
pull_list_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
pull_list.go Use batch database operations instead of one by one to optimze api pulls (#32680) 2024-12-11 05:15:06 +08:00
pull_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
pull.go Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +08:00
reaction.go
review_list.go Use batch database operations instead of one by one to optimze api pulls (#32680) 2024-12-11 05:15:06 +08:00
review_test.go Use batch database operations instead of one by one to optimze api pulls (#32680) 2024-12-11 05:15:06 +08:00
review.go
stopwatch_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
stopwatch.go
tracked_time_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
tracked_time.go