Skip to content

ILLink : Test API expsure #114567

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mrvoorhe
Copy link
Contributor

Re-expose ReconstructedFullTypeName. We rely on this in our test framework

Expose VerifyILOfOtherAssemblies. This causes us problems for our tests that verify the old mono BCL. There's a goofy circular reference with Mono.Security.dll and System.dll which results in references to System.dll with two different PublicKeyTokens. Exposing this method let's us disable this asserting behavior for our old mono tests

Re-expose `ReconstructedFullTypeName`.  We rely on this in our test framework

Expose `VerifyILOfOtherAssemblies`.  This causes us problems for our tests that verify the old mono BCL.  There's a goofy circular reference with Mono.Security.dll and System.dll which results in references to System.dll with two different PublicKeyTokens.  Exposing this method let's us disable this asserting behavior for our old mono tests
@Copilot Copilot bot review requested due to automatic review settings April 11, 2025 20:11
@mrvoorhe mrvoorhe requested a review from marek-safar as a code owner April 11, 2025 20:11
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Apr 11, 2025
@dotnet-policy-service dotnet-policy-service bot added linkable-framework Issues associated with delivering a linker friendly framework community-contribution Indicates that the PR has been added by a community member labels Apr 11, 2025
@mrvoorhe
Copy link
Contributor Author

@sbomer Please take a look

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

src/tools/illink/test/Mono.Linker.Tests/TestCases/TestCase.cs:27

  • Since the API is now public, consider updating the inline comment to more formally document the rationale behind the name reconstruction, instead of referring to it as 'a little hacky'.
ReconstructedFullTypeName = "$...{sourceFile.FileNameWithoutExtension}";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates that the PR has been added by a community member linkable-framework Issues associated with delivering a linker friendly framework needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant