aboutsummaryrefslogtreecommitdiffstats
path: root/models/consistency_test.go
Commit message (Collapse)AuthorAgeFilesLines
* A better go code formatter, and now `make fmt` can run in Windows (#17684)wxiaoguang2021-11-171-0/+1
| | | | * go build / format tools * re-format imports
* Decouple unit test code from business code (#17623)wxiaoguang2021-11-121-1/+2
|
* DBContext is just a Context (#17100)zeripath2021-09-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * DBContext is just a Context This PR removes some of the specialness from the DBContext and makes it context This allows us to simplify the GetEngine code to wrap around any context in future and means that we can change our loadRepo(e Engine) functions to simply take contexts. Signed-off-by: Andrew Thornton <art27@cantab.net> * fix unit tests Signed-off-by: Andrew Thornton <art27@cantab.net> * another place that needs to set the initial context Signed-off-by: Andrew Thornton <art27@cantab.net> * avoid race Signed-off-by: Andrew Thornton <art27@cantab.net> * change attachment error Signed-off-by: Andrew Thornton <art27@cantab.net>
* Move db related basic functions to models/db (#17075)Lunny Xiao2021-09-191-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | * Move db related basic functions to models/db * Fix lint * Fix lint * Fix test * Fix lint * Fix lint * revert unnecessary change * Fix test * Fix wrong replace string * Use *Context * Correct committer spelling and fix wrong replaced words Co-authored-by: zeripath <art27@cantab.net>
* Fix orphaned objects deletion bug (#15657)Lunny Xiao2021-04-301-0/+32
| | | | | | | * Fix orphaned objects deletion bug * extend test Co-authored-by: 6543 <6543@obermui.de>
* Fix and test for delete user (#1713)Ethan Koenig2017-05-201-172/+0
| | | | | | | | * Fix and test for delete user * Run updates in batches * Unit test
* Consistency checks for action unit tests (#1079)Ethan Koenig2017-02-281-2/+16
|
* Fix consistency check (#866)Ethan Koenig2017-02-081-8/+17
|
* Consistency checks for unit tests (#853)Ethan Koenig2017-02-071-0/+149