-
Notifications
You must be signed in to change notification settings - Fork 804
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
Refactor to Package Catalog to Improve Readability #1595
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding comments. I don't think the testing changes are an improvement. sqlc is mainly tested using end-to-end tests. The benefit is that we can change the internal packages without having to write tests. I'd be happy to keep these tests if there ported over to the end-to-end package
This is well noted. I will move what is not already covered with end-to-end testing there. |
I have removed the unit tests in favor of endtoend tests |
Did you end up writing new endtoend tests? There aren't any in the changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
I am still working on what I want to add to the endtoend test. |
This PR moves code around files in the package catalog to make it self documenting. It also adds comments to help better explain and document the code. This will make it more easy for new contributors to quickly understand the code and its implementation. There are also tests added to the package to ensure that as the code base evolves breaking changes are caught early in the unit tests.
NB: This refactor has only focused on tests and documentation.