gogs/internal/db
ᴜɴᴋɴᴡᴏɴ 76bb647d24
db: add tests for permissions (#6088)
* Add flag to print SQLs

* Add tests for perms

* Make results stable

* codecov: only show diff

* Once again, stable find results
2020-04-11 05:39:45 +08:00
..
errors access_token: migrate to GORM and add tests (#6086) 2020-04-11 01:25:19 +08:00
migrations workflows: enable golangci-lint (#5998) 2020-03-21 13:39:32 +08:00
access.go db: add tests for permissions (#6088) 2020-04-11 05:39:45 +08:00
access_tokens.go db: add tests for LFS (#6087) 2020-04-11 02:56:37 +08:00
access_tokens_test.go db: add tests for LFS (#6087) 2020-04-11 02:56:37 +08:00
action.go refactor: unify error handling in routing layer 2020-03-16 01:22:27 +08:00
admin.go log: migrate to unknwon.dev/clog/v2 (#5927) 2020-02-20 02:25:02 +08:00
attachment.go refactor: unify error handling in routing layer 2020-03-16 01:22:27 +08:00
comment.go workflows: enable golangci-lint (#5998) 2020-03-21 13:39:32 +08:00
db.go db: add tests for LFS (#6087) 2020-04-11 02:56:37 +08:00
db_test.go db: add tests for helper functions (#6084) 2020-04-10 22:51:24 +08:00
error.go db: include the Team ID in the error message (#6056) 2020-04-07 03:03:22 +08:00
issue.go lfs: implement HTTP routes (#6035) 2020-04-04 21:14:15 +08:00
issue_label.go refactor: unify error handling in routing layer 2020-03-16 01:22:27 +08:00
issue_mail.go conf: overhaul auth and user settings (#5942) 2020-02-27 18:06:38 +08:00
lfs.go db: add tests for permissions (#6088) 2020-04-11 05:39:45 +08:00
lfs_test.go db: add tests for LFS (#6087) 2020-04-11 02:56:37 +08:00
login_source.go db: handle JSON conversion for `LoginSource` (#6075) 2020-04-07 00:29:27 +08:00
login_sources.go db: use gorm function to check `ErrRecordNotFound` (#6060) 2020-04-05 00:56:31 +08:00
main_test.go db: add tests for permissions (#6088) 2020-04-11 05:39:45 +08:00
milestone.go refactor: unify error handling in routing layer 2020-03-16 01:22:27 +08:00
mirror.go ci: enable go vet check (#5981) 2020-03-11 00:30:51 +08:00
mirror_test.go git: migrate to github.com/gogs/git-module@v1.0.0 (#5958) 2020-03-08 19:09:31 +08:00
mocks.go db: add tests for permissions (#6088) 2020-04-11 05:39:45 +08:00
models.go access_token: migrate to GORM and add tests (#6086) 2020-04-11 01:25:19 +08:00
org.go lfs: implement HTTP routes (#6035) 2020-04-04 21:14:15 +08:00
org_team.go db: include the Team ID in the error message (#6056) 2020-04-07 03:03:22 +08:00
perms.go db: add tests for permissions (#6088) 2020-04-11 05:39:45 +08:00
perms_test.go db: add tests for permissions (#6088) 2020-04-11 05:39:45 +08:00
pull.go workflows: enable golangci-lint (#5998) 2020-03-21 13:39:32 +08:00
release.go api: support get releases endpoint (#6026) 2020-03-28 21:56:11 +08:00
repo.go repo: delete rows in `lfs_object` table when delete repo (#6072) 2020-04-06 18:44:06 +08:00
repo_branch.go lfs: implement HTTP routes (#6035) 2020-04-04 21:14:15 +08:00
repo_collaboration.go lfs: implement HTTP routes (#6035) 2020-04-04 21:14:15 +08:00
repo_editor.go workflows: enable golangci-lint (#5998) 2020-03-21 13:39:32 +08:00
repo_editor_test.go internal: move packages under this directory (#5836) 2019-10-24 01:51:46 -07:00
repo_test.go internal: move packages under this directory (#5836) 2019-10-24 01:51:46 -07:00
repos.go db: use gorm function to check `ErrRecordNotFound` (#6060) 2020-04-05 00:56:31 +08:00
ssh_key.go lfs: implement HTTP routes (#6035) 2020-04-04 21:14:15 +08:00
ssh_key_test.go db: add tests for helper functions (#6084) 2020-04-10 22:51:24 +08:00
two_factor.go lfs: implement HTTP routes (#6035) 2020-04-04 21:14:15 +08:00
two_factors.go lfs: implement HTTP routes (#6035) 2020-04-04 21:14:15 +08:00
update.go git: migrate to github.com/gogs/git-module@v1.0.0 (#5958) 2020-03-08 19:09:31 +08:00
user.go lfs: implement HTTP routes (#6035) 2020-04-04 21:14:15 +08:00
user_cache.go internal: move packages under this directory (#5836) 2019-10-24 01:51:46 -07:00
user_mail.go refactor: unify error handling in routing layer 2020-03-16 01:22:27 +08:00
users.go db: use gorm function to check `ErrRecordNotFound` (#6060) 2020-04-05 00:56:31 +08:00
webhook.go webhook: overhaul route handlers (#6002) 2020-03-22 22:07:22 +08:00
webhook_dingtalk.go git: migrate to github.com/gogs/git-module@v1.0.0 (#5958) 2020-03-08 19:09:31 +08:00
webhook_discord.go git: migrate to github.com/gogs/git-module@v1.0.0 (#5958) 2020-03-08 19:09:31 +08:00
webhook_slack.go git: migrate to github.com/gogs/git-module@v1.0.0 (#5958) 2020-03-08 19:09:31 +08:00
wiki.go git: migrate to github.com/gogs/git-module@v1.0.0 (#5958) 2020-03-08 19:09:31 +08:00