aboutsummaryrefslogtreecommitdiff
path: root/internal/db/main_test.go
Commit message (Collapse)AuthorAge
* all: replace `interface{}` with `any` (#7330)Joe Chen2023-02-02
| | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
* refactor(db): migrate `Follow` off `user.go` (#7203)Joe Chen2022-10-23
|
* migrations: add tests and remove XORM (#7050)Joe Chen2022-06-12
|
* db: run tests with pure-Go SQLite (#6998)Joe Chen2022-06-03
|
* ci: run database tests against Postgres, MySQL and SQLite (#6996)Joe Chen2022-06-01
|
* db: simplify GORM logger init in tests (#6444)ᴜɴᴋɴᴡᴏɴ2020-12-06
|
* db: migrate to GORM v2 (#6309)ᴜɴᴋɴᴡᴏɴ2020-09-06
|
* db: use GORM to backup and restore non-legacy tables (#6142)ᴜɴᴋɴᴡᴏɴ2020-05-04
|
* db: add tests for users (#6116)ᴜɴᴋɴᴡᴏɴ2020-04-18
| | | | | | | | | | | | | | | | | | | | | * Add new methods * Use Users.Create to replace previous hack * Reduce side effect * Do not clear tables when test failed * test_users_Authenticate * Rename constant * test_users_Create * test_users_GetByEmail * test_users_GetByID * test_users_GetByUsername
* login_source: migrate to GORM and add tests (#6090)ᴜɴᴋɴᴡᴏɴ2020-04-11
| | | | | | | | | | | | | | | | | | | | | * Use GORM in all write paths * Migrate to GORM * Fix lint errors * Use GORM to init table * dbutil: make writer detect error * Add more tests * Rename to clearTables * db: finish adding tests * osutil: add tests * Fix load source files path
* db: add tests for permissions (#6088)ᴜɴᴋɴᴡᴏɴ2020-04-11
| | | | | | | | | | | * Add flag to print SQLs * Add tests for perms * Make results stable * codecov: only show diff * Once again, stable find results
* db: add tests for LFS (#6087)ᴜɴᴋɴᴡᴏɴ2020-04-11
| | | | | | | | | * Improve DB test setup * Discard GORM logs in non-verbose mode * Add tests to lfs * Fix data race
* access_token: migrate to GORM and add tests (#6086)ᴜɴᴋɴᴡᴏɴ2020-04-11
| | | | | | | | | * access_token: migrate to GORM * Add tests * Fix tests * Fix test clock
* db: add tests for helper functions (#6084)ᴜɴᴋɴᴡᴏɴ2020-04-10