0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2025-01-14 04:35:40 +01:00
gitea/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.
2023-10-11 11:02:24 +00:00
..
actions Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
activities Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
admin
asymkey Replace assert.Fail with assert.FailNow (#27578) 2023-10-11 11:02:24 +00:00
auth Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
avatars Refactor system setting (#27000) 2023-10-05 09:08:19 +08:00
db
dbfs
fixtures
git Restore warning commit status (#27504) 2023-10-08 22:16:06 +00:00
issues Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
migrations Restore warning commit status (#27504) 2023-10-08 22:16:06 +00:00
organization Even more db.DefaultContext refactor (#27352) 2023-10-03 10:30:41 +00:00
packages
perm Even more db.DefaultContext refactor (#27352) 2023-10-03 10:30:41 +00:00
project
pull
repo Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
secret
shared/types
system Refactor system setting (#27000) 2023-10-05 09:08:19 +08:00
unit Make actions default enabled for newly created repository if global configuraion enabled (#27482) 2023-10-10 14:45:31 +00:00
unittest Replace assert.Fail with assert.FailNow (#27578) 2023-10-11 11:02:24 +00:00
user Refactor system setting (#27000) 2023-10-05 09:08:19 +08:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go
org_team.go Even more db.DefaultContext refactor (#27352) 2023-10-03 10:30:41 +00:00
org_team_test.go
org_test.go
repo.go Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
repo_test.go Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
repo_transfer.go
repo_transfer_test.go