forgejo/models
Morlinest c2346e4469 Add repository search unit and integration tests (#2575)
* Add more repo search tests

* Fix repo search tests

* Always test returned repos length

* Add test with lower pagesize limit (test more pages)

* Add and fix /api/repo/search integration tests

* Simplify unit tests code

* Simplify and unify integration tests code

* Improve test coverage

* Temporary fix tests due to bugs in current repo search implementation

* Revert removing not nil Searcher

* Add more checks to tests

* Simplify privacy checks in /api/repo tests

* Temporary remove privacy check from repo search tests
2017-10-10 09:23:29 +08:00
..
fixtures Remove repo unit index (#2621) 2017-10-02 23:22:25 +03:00
migrations Rewrite migrations to not depend on future code changes (#2604) 2017-10-08 19:08:18 +08:00
access.go
access_test.go
action.go Use AfterLoad instead of AfterSet on Structs (#2628) 2017-10-01 19:52:35 +03:00
action_test.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
admin.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
admin_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
attachment.go Use AfterLoad instead of AfterSet on Structs (#2628) 2017-10-01 19:52:35 +03:00
attachment_test.go
branches.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
consistency.go
error.go Feature: Timetracking (#2211) 2017-09-12 09:48:13 +03:00
error_oauth2.go
external_login_user.go
git_diff.go
git_diff_test.go
gpg_key.go GPG key email verification no longer case sensitive (#2661) (#2663) 2017-10-06 23:28:21 +03:00
gpg_key_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
graph.go
graph_test.go
helper.go
issue.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
issue_comment.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
issue_comment_test.go
issue_indexer.go Make indexer code more reusable (#2590) 2017-09-25 03:08:48 +03:00
issue_label.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
issue_label_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
issue_list.go
issue_list_test.go
issue_mail.go Restructure markup & markdown to prepare for multiple markup language… (#2411) 2017-09-16 20:17:57 +03:00
issue_milestone.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
issue_milestone_test.go
issue_stopwatch.go Use AfterLoad instead of AfterSet on Structs (#2628) 2017-10-01 19:52:35 +03:00
issue_stopwatch_test.go Feature: Timetracking (#2211) 2017-09-12 09:48:13 +03:00
issue_test.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
issue_tracked_time.go Use AfterLoad instead of AfterSet on Structs (#2628) 2017-10-01 19:52:35 +03:00
issue_tracked_time_test.go Feature: Timetracking (#2211) 2017-09-12 09:48:13 +03:00
issue_user.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
issue_user_test.go
issue_watch.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
issue_watch_test.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
lfs.go Use AfterLoad instead of AfterSet on Structs (#2628) 2017-10-01 19:52:35 +03:00
login_source.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
mail.go Add init support of orgmode document type on file view and readme (#2525) 2017-09-21 13:20:14 +08:00
main_test.go
models.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
models_sqlite.go
models_test.go
models_tidb.go
notification.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
notification_test.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
oauth2.go
org.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
org_team.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
org_team_test.go
org_test.go Expand fixtures (#2571) 2017-09-22 13:51:16 +03:00
pull.go table pull_request wasn't updated correctly (#2649) 2017-10-06 00:25:40 +03:00
pull_test.go Fix unit test race condition (#2516) 2017-09-15 10:54:25 +03:00
release.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
repo.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
repo_branch.go
repo_collaboration.go Reduce usage of allcols on update (#2596) 2017-09-25 12:59:27 +08:00
repo_collaboration_test.go
repo_editor.go
repo_issue.go Feature: Timetracking (#2211) 2017-09-12 09:48:13 +03:00
repo_list.go Use custom type and constants to hold order by options (#2572) 2017-09-22 15:53:21 +03:00
repo_list_test.go Add repository search unit and integration tests (#2575) 2017-10-10 09:23:29 +08:00
repo_mirror.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
repo_redirect.go
repo_redirect_test.go
repo_test.go Restructure markup & markdown to prepare for multiple markup language… (#2411) 2017-09-16 20:17:57 +03:00
repo_unit.go Remove repo unit index (#2621) 2017-10-02 23:22:25 +03:00
repo_watch.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
repo_watch_test.go Prevent sending emails and notifications to inactive users (#2384) 2017-09-16 08:18:25 +08:00
ssh_key.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
ssh_key_test.go
star.go
star_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
status.go Use AfterLoad instead of AfterSet on Structs (#2628) 2017-10-01 19:52:35 +03:00
status_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
test_fixtures.go
token.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
token_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
twofactor.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
unit.go Fix implementation of repo Home func (#2601) 2017-10-01 16:50:56 +03:00
unit_tests.go Complete push webhooks (#2530) 2017-09-21 10:43:26 +03:00
update.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
update_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
user.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
user_follow.go
user_follow_test.go
user_mail.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
user_mail_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
user_openid.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
user_openid_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
user_test.go
webhook.go Replace deprecated Id method with ID (#2655) 2017-10-05 07:43:04 +03:00
webhook_discord.go Webhooks for repo creation/deletion (#1663) 2017-09-03 11:20:24 +03:00
webhook_slack.go Webhooks for repo creation/deletion (#1663) 2017-09-03 11:20:24 +03:00
webhook_test.go Fix tests code to prevent some runtime errors (#2381) 2017-08-28 12:17:45 +03:00
wiki.go
wiki_test.go