Refactor to Package Catalog to Improve Readability#1595
Merged
kyleconroy merged 8 commits intosqlc-dev:mainfrom May 23, 2022
Merged
Refactor to Package Catalog to Improve Readability#1595kyleconroy merged 8 commits intosqlc-dev:mainfrom
kyleconroy merged 8 commits intosqlc-dev:mainfrom
Conversation
kyleconroy
requested changes
May 9, 2022
Collaborator
kyleconroy
left a comment
There was a problem hiding this comment.
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
Contributor
Author
|
This is well noted. I will move what is not already covered with end-to-end testing there. |
Contributor
Author
|
I have removed the unit tests in favor of endtoend tests |
Collaborator
|
Did you end up writing new endtoend tests? There aren't any in the changes. |
Contributor
Author
I am still working on what I want to add to the endtoend test. |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.