Skip to content
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

Correctly Resolve Assemblies for Types #312

Merged
merged 3 commits into from
Oct 10, 2024

Conversation

alexanderlinne
Copy link
Collaborator

Currently, it can happen that types are either located in the wrong assembly or in multiple assemblies. With this patch, TypeReference instances are always resolved to TypeDefinition instances, if possible. While the TypeReference may reference the Assembly of tho caller, the TypeDefinition always correctly references the assembly of the callee.

Signed-off-by: Alexander Linne <alexander.linne@tngtech.com>
Signed-off-by: Alexander Linne <alexander.linne@tngtech.com>
@alexanderlinne alexanderlinne requested a review from mak638 October 10, 2024 17:00
Signed-off-by: Alexander Linne <alexander.linne@tngtech.com>
@alexanderlinne alexanderlinne force-pushed the fix/correctly-resolve-assemblies branch from f03cd43 to e75fe2b Compare October 10, 2024 17:03
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 63.39286% with 41 lines in your changes missing coverage. Please review.

Project coverage is 65.42%. Comparing base (bba7065) to head (e75fe2b).

Files with missing lines Patch % Lines
ArchUnitNET/Domain/FunctionPointer.cs 50.00% 23 Missing and 8 partials ⚠️
ArchUnitNET/Loader/TypeFactory.cs 83.33% 7 Missing and 1 partial ⚠️
ArchUnitNET/Loader/ArchLoaderException.cs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #312      +/-   ##
==========================================
+ Coverage   65.41%   65.42%   +0.01%     
==========================================
  Files         254      256       +2     
  Lines       22853    22940      +87     
  Branches     1938     1948      +10     
==========================================
+ Hits        14949    15009      +60     
- Misses       7360     7378      +18     
- Partials      544      553       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@fgather fgather left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@alexanderlinne alexanderlinne merged commit 60bf37c into main Oct 10, 2024
9 checks passed
@alexanderlinne alexanderlinne deleted the fix/correctly-resolve-assemblies branch October 10, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants