Skip to content

Conversation

@elinor-fung
Copy link
Member

  • Make TestPlaceholderTarget (mock target) constructor take type infos and global values
  • Handle reading of global values in mock target implementation
  • Use Moq for creating a ContractRegistry instead of our own explicit implementation
  • Remove subclasses of TestPlaceholderTarget

@ghost ghost added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Nov 15, 2024
@elinor-fung elinor-fung added test-enhancement Improvements of test source code area-Diagnostics-coreclr and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 15, 2024
@elinor-fung elinor-fung added this to the 10.0.0 milestone Nov 15, 2024
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @tommcdon
See info in area-owners.md if you want to be subscribed.

{
public const ulong ExecutionManagerCodeRangeMapAddress = 0x000a_fff0;

const bool UseFunclets = true;
Copy link
Member

Choose a reason for hiding this comment

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

Is this needed? A const bool seems odd to me. If this is important, let's add a comment what this is trying to capture.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm missing why that is odd? It's just indicating that the test builder (currently) always specifies to use funclets and it is not configurable on the instance.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll move it to something local in a follow-up,.

@elinor-fung elinor-fung merged commit 2eb6a2a into dotnet:main Nov 20, 2024
147 checks passed
@elinor-fung elinor-fung deleted the cdac-testplaceholdertarget branch November 20, 2024 02:45
mikelle-rogers pushed a commit to mikelle-rogers/runtime that referenced this pull request Dec 10, 2024
- Make `TestPlaceholderTarget` (mock target) constructor take type infos and global values
- Handle reading of global values in mock target implementation
- Use Moq for creating a `ContractRegistry` instead of our own explicit implementation
- Remove subclasses of `TestPlaceholderTarget`
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Diagnostics-coreclr test-enhancement Improvements of test source code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants