All tests of app/controllers is running with the same in-memory
database, so they shouldn’t rely on a clean database and shouldn’t
cleanup after runs. Also, they should be running under parallel mode.
All other tests should make it own database and clean it up after
running.
EduOJ
子项目地址
License.
This project is licensed under GNU AFFERO GENERAL PUBLIC LICENSE Version 3.
Contribution
Our document is still under construction.
Code style.
All code must be formatted by go fmt.
All tests of app/controllers is running with the same in-memory database, so they shouldn’t rely on a clean database and shouldn’t cleanup after runs. Also, they should be running under parallel mode.
All other tests should make it own database and clean it up after running.
Roles
Permissions
Here are the permissions and their descriptions.
Buckets:
images:
images with their “path” as filename.
problems
scripts
submissions