-
Notifications
You must be signed in to change notification settings - Fork 22
refactor(injector/typed): Refactor ResolveInterfaceTypeByName for improved clarity and error handling #616
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
Merged
kakkoyun
merged 3 commits into
main
from
04-15-feat_injector_typed_refactor_resolveinterfacetypebyname_for_improved_clarity_and_error_handling
Jun 5, 2025
Merged
Conversation
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
This was referenced Apr 16, 2025
Member
Author
RomainMuller
approved these changes
Apr 22, 2025
c56bf17 to
6c4905d
Compare
9c2709c to
be2028f
Compare
6c4905d to
62d099c
Compare
35ebe90 to
66e79f8
Compare
62d099c to
f5ea563
Compare
6e4ae96 to
1c9cd64
Compare
RomainMuller
approved these changes
Jun 3, 2025
d2cdd1b to
bbe2ed1
Compare
1c9cd64 to
d01d615
Compare
d053f83 to
d1d3c13
Compare
bbe2ed1 to
d575c0b
Compare
d1d3c13 to
b8a2864
Compare
d575c0b to
a59cbdb
Compare
Base automatically changed from
04-15-refactor_injector_refactor_typename_handling_and_migrate_to_typed_package
to
main
June 5, 2025 17:21
b8a2864 to
ad3e699
Compare
…roved clarity and error handling This update refactors the `ResolveInterfaceTypeByName` function to enhance its structure and error reporting. The function now separates the logic for handling built-in types and package-qualified types, improving readability. A new helper function, `validateTypeNameIsInterface`, has been introduced to encapsulate the validation of interface types, ensuring consistent error messages and reducing code duplication. Additionally, specific error messages have been added for import failures and type lookups, providing clearer context for users. Signed-off-by: Kemal Akkoyun <[email protected]>
Signed-off-by: Kemal Akkoyun <[email protected]>
Signed-off-by: Kemal Akkoyun <[email protected]>
ad3e699 to
827efcf
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #616 +/- ##
==========================================
- Coverage 68.49% 66.80% -1.69%
==========================================
Files 113 113
Lines 7868 7866 -2
==========================================
- Hits 5389 5255 -134
- Misses 1938 2068 +130
- Partials 541 543 +2
🚀 New features to boost your workflow:
|
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 update refactors the
ResolveInterfaceTypeByNamefunction to enhance its structure and error reporting. The function now separates the logic for handling built-in types and package-qualified types, improving readability. A new helper function,validateTypeNameIsInterface, has been introduced to encapsulate the validation of interface types, ensuring consistent error messages and reducing code duplication.Additionally, specific error messages have been added for import failures and type lookups, providing clearer context for users.
Signed-off-by: Kemal Akkoyun [email protected]