gitea/models/unittest
Lunny Xiao 6410c34b7f
Refactor ref type (#33242)
Major changes:

1. do not sync ".keep" file during tests
2. fix incorrect route handler and empty repo handling (backported as #33253 with tests)
3. do not use `RepoRef`: most of the calls are abuses.
4. Use `git.RefType` instead of a new type definition `RepoRefType` on `context`.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-01-14 15:35:34 +08:00
..
consistency.go Replace assert.Fail with assert.FailNow (#27578) 2023-10-11 11:02:24 +00:00
fixtures.go Refactor fixture loading for testing (#33024) 2024-12-30 04:06:57 +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
fscopy.go Refactor ref type (#33242) 2025-01-14 15:35:34 +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