Registry Mirror
Skip to content

Conversation

@alexanderlinne

Copy link
Copy Markdown
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

codecov-commenter commented Oct 10, 2024 •

Copy link
Copy Markdown

Codecov Report

❌ 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).
⚠️ Report is 290 commits behind head on main.

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@fgather fgather left a comment

Copy link
Copy Markdown
Contributor

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
@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