-
Notifications
You must be signed in to change notification settings - Fork 662
dataconnect: testing: use Arb.choice() instead of Arb.merge() #7628
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
Conversation
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. |
📝 PRs merging into main branchOur main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released. |
Coverage Report 1Affected ProductsNo changes between base commit (6dab936) and merge commit (8d126bf).Test Logs |
|
/gemini review |
|
/gemini summary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request correctly refactors the codepoints arbitrary generator by replacing a chain of Arb.merge() calls with a single Arb.choice() call. This is a great improvement as it ensures a more even distribution of generated characters for property-based testing. The change is clean, correct, and aligns with the goal of improving test data generation. I have no further suggestions.
Summary of ChangesThis pull request refactors the character generation logic within the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
|
This PR refactors Data Connect's the character generation logic within its testing utility. By transitioning from sequential
Arb.merge()calls to a singleArb.choice()invocation, the PR improves the statistical distribution of generated codepoints, ensuring that test data more accurately represents a diverse range of characters.Highlights
Arb.merge()calls to a singleArb.choice()call. This change ensures a more even distribution of generated characters, addressing the previous strong weighting towards the finalArbin the chain.Changelog
Arb.merge()calls with a singleArb.choice()call for thecodepointsarbitrary generator.io.kotest.property.arbitrary.choiceand removeio.kotest.property.arbitrary.merge.