You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/models
Nanguan Lin dc04044716
Replace assert.Fail with assert.FailNow (#27578)
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.
9 months ago
..
actions Penultimate round of `db.DefaultContext` refactor (#27414) 9 months ago
activities Penultimate round of `db.DefaultContext` refactor (#27414) 9 months ago
admin Next round of `db.DefaultContext` refactor (#27089) 10 months ago
asymkey Replace assert.Fail with assert.FailNow (#27578) 9 months ago
auth Penultimate round of `db.DefaultContext` refactor (#27414) 9 months ago
avatars Refactor system setting (#27000) 9 months ago
db make writing main test easier (#27270) 9 months ago
dbfs make writing main test easier (#27270) 9 months ago
fixtures Test more templates for if they contain an error (#27367) 9 months ago
git Restore warning commit status (#27504) 9 months ago
issues Penultimate round of `db.DefaultContext` refactor (#27414) 9 months ago
migrations Restore warning commit status (#27504) 9 months ago
organization Even more `db.DefaultContext` refactor (#27352) 9 months ago
packages make writing main test easier (#27270) 9 months ago
perm Even more `db.DefaultContext` refactor (#27352) 9 months ago
project More `db.DefaultContext` refactor (#27265) 9 months ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Penultimate round of `db.DefaultContext` refactor (#27414) 9 months ago
secret Refactor secrets modification logic (#26873) 10 months ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 1 year ago
system Refactor system setting (#27000) 9 months ago
unit Make actions default enabled for newly created repository if global configuraion enabled (#27482) 9 months ago
unittest Replace assert.Fail with assert.FailNow (#27578) 9 months ago
user Refactor system setting (#27000) 9 months ago
webhook make writing main test easier (#27270) 9 months ago
error.go Sync branches into databases (#22743) 1 year ago
fixture_generation.go Fix yaml test (#27297) 9 months ago
fixture_test.go Fix yaml test (#27297) 9 months ago
main_test.go make writing main test easier (#27270) 9 months ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Even more `db.DefaultContext` refactor (#27352) 9 months ago
org_team_test.go Reduce usage of `db.DefaultContext` (#27073) 10 months ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Penultimate round of `db.DefaultContext` refactor (#27414) 9 months ago
repo_test.go Penultimate round of `db.DefaultContext` refactor (#27414) 9 months ago
repo_transfer.go Next round of `db.DefaultContext` refactor (#27089) 10 months ago
repo_transfer_test.go Next round of `db.DefaultContext` refactor (#27089) 10 months ago