mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-23 19:11:58 +01:00
3c4153b195
Some preparations are only used by a few tests, so to make the tests fast, they should only be prepared when they are used. By the way, this PR splits PrepareTestEnv into small functions to make it simple. --- Conflict resolution: Mostly magical and just re-pasting the code into the right places. Done differently: use `require.NoError` instead of `assert.NoError`. (cherry picked from commit ec2d1593c269e06655525deb96f74b8094221b6f) |
||
---|---|---|
.. | ||
filebuffer | ||
rotatingfilewriter | ||
color.go | ||
color_test.go | ||
error.go | ||
file_unix.go | ||
file_unix_test.go | ||
io.go | ||
io_test.go | ||
keypair.go | ||
keypair_test.go | ||
legacy.go | ||
legacy_test.go | ||
pack.go | ||
pack_test.go | ||
paginate.go | ||
paginate_test.go | ||
path.go | ||
path_test.go | ||
remove.go | ||
sanitize.go | ||
sanitize_test.go | ||
sec_to_time.go | ||
sec_to_time_test.go | ||
shellquote.go | ||
shellquote_test.go | ||
slice.go | ||
slice_test.go | ||
string.go | ||
string_test.go | ||
timer.go | ||
timer_test.go | ||
truncate.go | ||
truncate_test.go | ||
url.go | ||
util.go | ||
util_test.go |