-
Notifications
You must be signed in to change notification settings - Fork 41
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
Cross test max items one #1910
Cross test max items one #1910
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1910 +/- ##
==========================================
+ Coverage 60.26% 62.04% +1.77%
==========================================
Files 328 327 -1
Lines 44331 36905 -7426
==========================================
- Hits 26717 22897 -3820
+ Misses 16118 12511 -3607
- Partials 1496 1497 +1 ☔ View full report in Codecov by Sentry. |
|
||
maxItems := rapid.IntRange(0, 1).Draw(t, "maxItemsOne") | ||
maxPropValues := 3 | ||
if maxItems == 1 { |
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.
Maybe a quick comment here that we're only testing happy path for now.
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.
Nice thanks!
This one adds an escape hatch for empty strings and lists as these are currently broken. I'll add the tests which repro this in the next PR. Stacked on #1910
fixes #1861
This adds maxItemsOne generation in the rapid generated schemas.
Stack on #1909