aboutsummaryrefslogtreecommitdiff
path: root/internal/db/lfs_test.go
Commit message (Collapse)AuthorAge
* db: pass context to tests by default (#7622)Joe Chen2023-12-17
| | | [skip ci]
* 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 methods off `user.go` (#7219)Joe Chen2022-10-30
|
* db: refactor "action" table to use GORM (#7054)Joe Chen2022-06-25
| | | Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
* migrations: add tests and remove XORM (#7050)Joe Chen2022-06-12
|
* db: use `context` and go-mockgen for `LFSStore` (#7038)Joe Chen2022-06-10
|
* ci: run database tests against Postgres, MySQL and SQLite (#6996)Joe Chen2022-06-01
|
* db: migrate to GORM v2 (#6309)ᴜɴᴋɴᴡᴏɴ2020-09-06
|
* 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 LFS (#6087)ᴜɴᴋɴᴡᴏɴ2020-04-11
* Improve DB test setup * Discard GORM logs in non-verbose mode * Add tests to lfs * Fix data race