0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-15 03:51:32 +01:00
gitea/models/auth
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
..
access_token_scope_test.go
access_token_scope.go
access_token_test.go
access_token.go
auth_token.go
main_test.go
oauth2_list.go
oauth2_test.go
oauth2.go
session.go
source_test.go
source.go
twofactor.go
webauthn_test.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
webauthn.go