forgejo/models/repo
Gusted 4c67023c7e
tests: improve actvititypub integration test code
- Make use of `test.MockVariableValue` to override variables for the
duration of the test.
- Don't needlessly call `onGiteaRun`, its only needed when a HTTP server
needs to be called by the code.
- When `onGiteaRun` is used, make use of the passed parameters, such as
the passed `*testing.T` variable and `*url.URL` (this also avoids
needing to serve the routers in the test code again).
- Use `(*url.URL).JoinPath` to craft new URLs.
- Don't override `setting.AppURL` & `setting.Database.LogSQL` when its
does not affect the test.
- Add empty fixture files for `FederatedUser` & `FederationHost` so they
are truncated and do not persist between tests.
2024-11-01 22:39:49 +01:00
..
archive_download_count.go Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
archive_download_count_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
archiver.go Count downloads for tag archives 2024-04-08 12:51:27 +02:00
attachment.go Implement external assets 2024-07-29 20:35:55 +02:00
attachment_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
avatar.go
collaboration.go [MODERATION] User blocking 2024-02-05 15:56:45 +01:00
collaboration_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
following_repo.go ui for adding following repos 2024-05-24 13:28:15 +02:00
following_repo_test.go ui for adding following repos 2024-05-24 13:28:15 +02:00
fork.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
fork_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
git.go Add merge style fast-forward-only (#28954) 2024-02-14 17:19:19 +01:00
issue.go Clean up log messages (#30313) 2024-04-15 20:01:35 +02:00
language_stats.go
main_test.go tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
mirror.go
pushmirror.go [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
pushmirror_test.go [FEAT] Allow pushmirror to use publickey authentication 2024-08-22 17:05:07 +02:00
redirect.go
redirect_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
release.go Remove unused code from models/repos/release.go (#31756) 2024-08-04 18:24:10 +02:00
release_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
repo.go Make GetRepositoryByName more safer (#31712) 2024-08-04 10:14:34 +02:00
repo_flags.go [FEAT] Repository flags 2024-02-05 16:09:42 +01:00
repo_flags_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
repo_indexer.go Add support for sha256 repositories (#23894) 2024-01-19 17:05:02 +01:00
repo_list.go Fix linting issues 2024-08-18 16:25:13 +02:00
repo_list_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
repo_repository.go ui for adding following repos 2024-05-24 13:28:15 +02:00
repo_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
repo_unit.go style: reenable switch check 2024-08-18 15:19:01 +02:00
repo_unit_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
search.go fix: Add recentupdated as recognized sort option 2024-10-19 23:53:29 +02:00
star.go
star_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
topic.go [GITEA] Fix the topic search paging 2024-02-05 16:09:43 +01:00
topic_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
update.go Move some repository transfer functions to service layer (#28855) 2024-02-05 06:17:23 +00:00
upload.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
user_repo.go Get repo assignees and reviewers should ignore deactivated users (#30770) (#30782) 2024-05-05 08:53:27 +01:00
user_repo_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
watch.go [MODERATION] Refactor excluding watchers mechanism (squash) 2024-02-05 15:56:58 +01:00
watch_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
wiki.go
wiki_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00