gitea/models
Nanguan Lin dc04044716
Replace assert.Fail with assert.FailNow ()
assert.Fail() will continue to execute the code while assert.FailNow()
not. I thought those uses of assert.Fail() should exit immediately.
PS: perhaps it's a good idea to use
[require](https://pkg.go.dev/github.com/stretchr/testify/require)
somewhere because the assert package's default behavior does not exit
when an error occurs, which makes it difficult to find the root error
reason.
..
actions Penultimate round of `db.DefaultContext` refactor ()
activities Penultimate round of `db.DefaultContext` refactor ()
admin Next round of `db.DefaultContext` refactor ()
asymkey Replace assert.Fail with assert.FailNow ()
auth Penultimate round of `db.DefaultContext` refactor ()
avatars Refactor system setting ()
db make writing main test easier ()
dbfs make writing main test easier ()
fixtures Test more templates for if they contain an error ()
git Restore warning commit status ()
issues Penultimate round of `db.DefaultContext` refactor ()
migrations Restore warning commit status ()
organization Even more `db.DefaultContext` refactor ()
packages make writing main test easier ()
perm Even more `db.DefaultContext` refactor ()
project More `db.DefaultContext` refactor ()
pull refactor some functions to support ctx as first parameter ()
repo Penultimate round of `db.DefaultContext` refactor ()
secret Refactor secrets modification logic ()
shared/types Display owner of a runner as a tooltip instead of static text ()
system Refactor system setting ()
unit Make actions default enabled for newly created repository if global configuraion enabled ()
unittest Replace assert.Fail with assert.FailNow ()
user Refactor system setting ()
webhook make writing main test easier ()
error.go Sync branches into databases ()
fixture_generation.go Fix yaml test ()
fixture_test.go Fix yaml test ()
main_test.go make writing main test easier ()
org.go refactor some functions to support ctx as first parameter ()
org_team.go Even more `db.DefaultContext` refactor ()
org_team_test.go Reduce usage of `db.DefaultContext` ()
org_test.go Implement FSFE REUSE for golang files ()
repo.go Penultimate round of `db.DefaultContext` refactor ()
repo_test.go Penultimate round of `db.DefaultContext` refactor ()
repo_transfer.go Next round of `db.DefaultContext` refactor ()
repo_transfer_test.go Next round of `db.DefaultContext` refactor ()