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

Add unit tests of strict key exchange extension #918

Merged
merged 1 commit into from
Dec 23, 2023

Conversation

hpoettker
Copy link
Contributor

Thanks for merging #917!

I also wrote two unit tests for the KeyExchanger and the Transport, respectively. They cover some corner cases and in particular aborts that are an import part of the strict key exchange to address the CVE. However, they are a bit mock and reflection heavy, so they might show brittleness in the future.

@codecov-commenter
Copy link

codecov-commenter commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a262f51) 68.74% compared to head (12ea6b2) 69.02%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #918      +/-   ##
============================================
+ Coverage     68.74%   69.02%   +0.27%     
- Complexity     1437     1448      +11     
============================================
  Files           208      208              
  Lines          7602     7602              
  Branches        658      658              
============================================
+ Hits           5226     5247      +21     
+ Misses         2023     2004      -19     
+ Partials        353      351       -2     

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

@hierynomus hierynomus merged commit 81e87a4 into hierynomus:master Dec 23, 2023
6 checks passed
@hpoettker hpoettker deleted the terrapin-unit-test branch December 23, 2023 15:17
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.

3 participants