1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-08 00:44:26 +00:00
gitea/models/unittest
wxiaoguang 0ed160ffea
Refactor tests (#33021)
1. fix incorrect tests, for example: BeanExists doesn't do assert and
shouldn't be used
2. remove unnecessary test functions
3. introduce DumpQueryResult to help to see the database rows during
test (at least I need it)

```
====== DumpQueryResult: SELECT * FROM action_runner_token ======
- # row[0]
  id: 1
  token: xeiWBL5kuTYxGPynHCqQdoeYmJAeG3IzGXCYTrDX
  owner_id: 0
...
```
2024-12-29 01:05:56 +00:00
..
consistency.go Replace assert.Fail with assert.FailNow (#27578) 2023-10-11 11:02:24 +00:00
fixtures.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
fscopy.go Reduce integration test overhead (#32475) 2024-11-14 19:28:46 +00:00
reflection.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
testdb.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
unit_tests.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00