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

Fix conformance test name generation for mixed camel-/snake-case #531

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

jpschorr
Copy link
Contributor

@jpschorr jpschorr commented Jan 10, 2025

The test name in the input source are sometimes camelCase, somtimes snake_case, sometimes include ALLCAPS, and sometimes just space separated. This attempts to handle all these cases, as well as them being mixed, when generating output test function names.

The best place to see an example of the changes is in the new tests:
https://github.com/partiql/partiql-lang-rust/pull/531/files#diff-32bd33373ab1201cb93b5adcb18518713148844aef6b0807f26a221b792d031cR110-R121

Cf #511

I do expect the conformance test report for this PR to potentially show changes due to this renaming, though I'm not sure it actually tracks tests that are removed or added, which is what this will appear as.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@jpschorr jpschorr force-pushed the feat-conformance-test-names branch from 154de65 to b7eca20 Compare January 10, 2025 19:59
@jpschorr jpschorr changed the base branch from main to fix-rust_1_84 January 10, 2025 19:59
Copy link

github-actions bot commented Jan 10, 2025

Conformance comparison report

Base (3bcbd2d) 3286680 +/-
% Passing 86.90% 86.90% 0.00%
✅ Passing 5587 5587 0
❌ Failing 842 842 0
🔶 Ignored 0 0 0
Total Tests 6429 6429 0

Number passing in both: 4168

Number failing in both: 557

Number passing in Base (3bcbd2d) but now fail: 0

Number failing in Base (3bcbd2d) but now pass: 0

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.46%. Comparing base (3bcbd2d) to head (b7eca20).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #531      +/-   ##
==========================================
+ Coverage   81.36%   81.46%   +0.10%     
==========================================
  Files          89       89              
  Lines       19446    19388      -58     
  Branches    19446    19388      -58     
==========================================
- Hits        15822    15795      -27     
+ Misses       3205     3175      -30     
+ Partials      419      418       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jpschorr jpschorr requested a review from am357 January 10, 2025 20:38
Base automatically changed from fix-rust_1_84 to main January 10, 2025 21:53
@jpschorr jpschorr merged commit 1b19d11 into main Jan 10, 2025
19 checks passed
@jpschorr jpschorr deleted the feat-conformance-test-names branch January 10, 2025 21:54
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.

2 participants