RFR: 8346107: Generators: testing utility for random value generation [v4]

Theo Weidmann tweidmann at openjdk.org
Wed Jan 8 13:11:39 UTC 2025


On Wed, 8 Jan 2025 09:30:28 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> Do you mean specifically how this test here works or how the mocking works? Or both?
>
> Maybe just say what values you feed in, and why it produces the results.
> That should hopefully help a future person who tries to extend the test for their own type.

I documented MockRandomnessSource and added comments to this test case. I hope that provides enough clarifications to understand the other tests as it is always the same pattern (and this is definitely the most complicated one).

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/22941#discussion_r1907158053


More information about the hotspot-compiler-dev mailing list