gitea/models/unittest
wxiaoguang 34dfc25b83
Some checks are pending
release-nightly / nightly-binary (push) Waiting to run
release-nightly / nightly-docker-rootful (push) Waiting to run
release-nightly / nightly-docker-rootless (push) Waiting to run
Make git clone URL could use current signed-in user (#33091)
close #33086

* Add a special value for "SSH_USER" setting: `(DOER_USERNAME)`
* Improve parseRepositoryURL and add tests (now it doesn't have hard
dependency on some setting values)

Many changes are just adding "ctx" and "doer" argument to functions.

By the way, improve app.example.ini, remove all `%(key)s` syntax, it
only makes messy and no user really cares about it.

Document: https://gitea.com/gitea/docs/pulls/138
2025-01-07 13:17:44 +08:00
..
consistency.go Replace assert.Fail with assert.FailNow (#27578) 2023-10-11 11:02:24 +00:00
fixtures_loader.go Refactor fixture loading for testing (#33024) 2024-12-30 04:06:57 +00:00
fixtures_test.go Refactor fixture loading for testing (#33024) 2024-12-30 04:06:57 +00:00
fixtures.go Refactor fixture loading for testing (#33024) 2024-12-30 04:06:57 +00:00
fscopy.go Fix unittest and repo create bug (#33061) 2024-12-31 18:45:05 +08:00
reflection.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
testdb.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
unit_tests.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00