Skip to content
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

Merged
merged 5 commits into from
May 2, 2024
Merged

Cross test max items one #1910

merged 5 commits into from
May 2, 2024

Conversation

VenelinMartinov
Copy link
Contributor

fixes #1861

This adds maxItemsOne generation in the rapid generated schemas.

Stack on #1909

Copy link

codecov bot commented Apr 29, 2024

Codecov Report

Attention: Patch coverage is 13.15789% with 33 lines in your changes are missing coverage. Please review.

Project coverage is 62.04%. Comparing base (49a6bff) to head (fa74ba3).
Report is 2 commits behind head on master.

Files Patch % Lines
pkg/tests/cross-tests/rapid_tv_gen.go 0.00% 23 Missing ⚠️
pkg/tests/cross-tests/pretty.go 0.00% 10 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.


maxItems := rapid.IntRange(0, 1).Draw(t, "maxItemsOne")
maxPropValues := 3
if maxItems == 1 {
Copy link
Member

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.

Copy link
Member

@t0yv0 t0yv0 left a comment

Choose a reason for hiding this comment

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

Nice thanks!

Base automatically changed from vvm/cross_test_config_mode to master May 2, 2024 15:59
@VenelinMartinov VenelinMartinov enabled auto-merge (squash) May 2, 2024 16:01
@VenelinMartinov VenelinMartinov merged commit 42d7028 into master May 2, 2024
11 checks passed
@VenelinMartinov VenelinMartinov deleted the vvm/cross_test_max_items branch May 2, 2024 16:13
VenelinMartinov added a commit that referenced this pull request May 2, 2024
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cross-test MaxItems=1 toggling
2 participants