Skip to content

Add circular_dynamic_buffer wrapping, boundary, and fuzz tests#201

Merged
sgerbino merged 1 commit intocppalliance:developfrom
sgerbino:pr/test-cases
Mar 4, 2026
Merged

Add circular_dynamic_buffer wrapping, boundary, and fuzz tests#201
sgerbino merged 1 commit intocppalliance:developfrom
sgerbino:pr/test-cases

Conversation

@sgerbino
Copy link
Collaborator

@sgerbino sgerbino commented Mar 4, 2026

Cover code paths the existing testMembers/testGrind harness cannot reach: two-segment buffer splits when data wraps around the ring, clamping behavior for oversized commit/consume, the in_pos_ reset optimization in consume(), capacity-1 boundary, and a 2000-iteration fuzz test against a reference model.

@coderabbitai
Copy link

coderabbitai bot commented Mar 4, 2026

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • test/unit/buffers/circular_dynamic_buffer.cpp is excluded by !**/test/**

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a94ee809-f157-40cf-910d-68427e2d3204

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cppalliance-bot
Copy link

cppalliance-bot commented Mar 4, 2026

An automated preview of the documentation is available at https://201.capy.prtest3.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-03-04 17:56:42 UTC

@cppalliance-bot
Copy link

cppalliance-bot commented Mar 4, 2026

GCOVR code coverage report https://201.capy.prtest3.cppalliance.org/gcovr/index.html
LCOV code coverage report https://201.capy.prtest3.cppalliance.org/genhtml/index.html
Coverage Diff Report https://201.capy.prtest3.cppalliance.org/diff-report/index.html

Build time: 2026-03-04 18:09:38 UTC

Cover code paths the existing testMembers/testGrind harness cannot
reach: two-segment buffer splits when data wraps around the ring,
clamping behavior for oversized commit/consume, the in_pos_ reset
optimization in consume(), capacity-1 boundary, and a 2000-iteration
fuzz test against a reference model.
@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.95%. Comparing base (935dd21) to head (b23a9c0).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #201      +/-   ##
===========================================
+ Coverage    91.77%   91.95%   +0.17%     
===========================================
  Files           76       76              
  Lines         4500     4500              
===========================================
+ Hits          4130     4138       +8     
+ Misses         370      362       -8     

see 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 935dd21...b23a9c0. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sgerbino sgerbino merged commit 2d4c01f into cppalliance:develop Mar 4, 2026
35 checks passed
@sgerbino sgerbino deleted the pr/test-cases branch March 4, 2026 18:21
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