Skip to content

Conversation

dnkolegov-ar
Copy link
Collaborator

@dnkolegov-ar dnkolegov-ar commented Jun 19, 2025

This PR adds basic fuzz tests for stream.

handshake fuzzes the low-level primitive of the handshake protocol, which is why it requires some private handshake types.

Now I just made them public and also removed cfg(test) for x25519's PublicKey::from_bytes. I think you may have better ideas on how to implement that more correctly. If you do not want to make any changes to your type system, then we can remove the handshake test.

@patrick-ogrady
Copy link
Contributor

Now I just made them public and also removed cfg(test) for x25519's PublicKey::from_bytes. I think you may have better ideas on how to implement that more correctly. If you do not want to make any changes to your type system, then we can remove the handshake test.

I made some small tweaks 👍

@patrick-ogrady patrick-ogrady changed the title Add fuzz tests for stream handshake [stream] Add fuzz tests for handshake Jun 19, 2025
@patrick-ogrady patrick-ogrady merged commit c412050 into main Jun 19, 2025
16 checks passed
@patrick-ogrady patrick-ogrady deleted the denis/stream-fuzz-tests branch June 19, 2025 20:13
Copy link

codecov bot commented Jun 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.02%. Comparing base (15dee37) to head (db9c33a).
Report is 3 commits behind head on main.

@@            Coverage Diff             @@
##             main    #1129      +/-   ##
==========================================
+ Coverage   90.98%   91.02%   +0.04%     
==========================================
  Files         215      215              
  Lines       57313    57416     +103     
==========================================
+ Hits        52145    52262     +117     
+ Misses       5168     5154      -14     
Files with missing lines Coverage Δ
stream/src/public_key/handshake.rs 100.00% <ø> (ø)
stream/src/public_key/x25519.rs 100.00% <ø> (ø)

... and 10 files 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 15dee37...db9c33a. Read the comment docs.

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

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