-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
unbind the CheckConsistency for some structs so that they can be moved to sub packages easier #17612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a601905
to
22bf7e7
Compare
I can see Should they be moved into unit test code? |
I have tried that. Unfortunately, they cannot. I think that's should be a limit of Golang test file. You cannot import a function on a test file. |
How about using a separate package for unit test related code, then maybe this package won't be compiled for releases. |
We can't do that. That will result in recycle import. The new package will depend models, but models will use method |
…d to sub packages easier
22bf7e7
to
7113f15
Compare
…d to sub packages easier (go-gitea#17612) * unbind the CheckConsistency for some structs so that they can be moved to sub packages easier * Fix functions name * Fix typo
As title.