Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 11:16:11 +01:00
forgejo/services/repository/files
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
..
cherry_pick.go Clean up log messages (#30313) 2024-04-15 20:01:35 +02:00
commit.go Cache repository default branch commit status to reduce query on commit status table (#29444) 2024-03-11 23:36:58 +07:00
content.go [PERFORMANCE] git check-attr on bare repo if supported 2024-03-28 10:52:51 +01:00
content_test.go tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
diff.go Fix reverting a merge commit failing (#28794) 2024-01-16 15:06:51 +00:00
diff_test.go [TESTS] Fix usage of LoadRepoCommit 2024-08-26 08:03:48 +02:00
file.go [GITEA] Allow user to select email for file operations in Web UI 2024-02-05 16:09:41 +01:00
file_test.go [TESTS] Fix usage of LoadRepoCommit 2024-08-26 08:03:48 +02:00
patch.go Clean up log messages (#30313) 2024-04-15 20:01:35 +02:00
temp_repo.go [BUG] Use correct empty commit ID 2024-04-16 01:08:15 +02:00
temp_repo_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
tree.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-26 22:30:26 +01:00
tree_test.go [TESTS] Fix usage of LoadRepoCommit 2024-08-26 08:03:48 +02:00
update.go Resolve lint for unused parameter and unnecessary type arguments (#30750) 2024-05-05 08:38:16 +01:00
upload.go [PERFORMANCE] git check-attr on bare repo if supported 2024-03-28 10:52:51 +01:00