-
-
Notifications
You must be signed in to change notification settings - Fork 308
Tests: Fix cast and truncation warnings. #1978
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
WalkthroughMinor benchmark test adjustments: add explicit uint16_t casts for random data initialization in slidehash benchmark, and change compressed_sizes array type from uLong to z_uintmax_t in uncompress benchmark. No control flow, allocation, or error handling changes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai generate docstrings |
✅ Actions performedDocstrings generation started. |
Docstrings generation was requested by @mtl1979. * #1978 (comment) The following files were modified: * `test/benchmarks/benchmark_slidehash.cc`
|
Note Generated docstrings for this pull request at #1979 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1978 +/- ##
===========================================
- Coverage 80.86% 0 -80.87%
===========================================
Files 161 0 -161
Lines 13741 0 -13741
Branches 3117 0 -3117
===========================================
- Hits 11111 0 -11111
+ Misses 1603 0 -1603
+ Partials 1027 0 -1027 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Docstrings generation was requested by @mtl1979. * #1978 (comment) The following files were modified: * `test/benchmarks/benchmark_slidehash.cc`
compressed_sizeswas unsigned long, but it was assignedsize_twhich is larger on MSVCl0andl1are bothuint16_tbutrand()returnsintwhich is 32-bit typeSummary by CodeRabbit