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

improve code coverage of random number generator test #3358

Merged
merged 1 commit into from Mar 25, 2022

Conversation

marten-seemann
Copy link
Member

This change makes it more likely that https://github.com/lucas-clemente/quic-go/blob/d4293fb274084bc8fda54d39941c1856cf00d3ed/internal/utils/rand.go#L25-L27 is executed, as the value max is reduced by passing in a higher n.

@codecov
Copy link

codecov bot commented Mar 23, 2022

Codecov Report

Merging #3358 (afe3adb) into master (d4293fb) will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3358      +/-   ##
==========================================
+ Coverage   85.57%   85.58%   +0.01%     
==========================================
  Files         135      135              
  Lines        9860     9860              
==========================================
+ Hits         8437     8438       +1     
+ Misses       1046     1045       -1     
  Partials      377      377              
Impacted Files Coverage Δ
internal/utils/rand.go 75.00% <0.00%> (+12.50%) ⬆️

Continue to review full report at Codecov.

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

@marten-seemann marten-seemann merged commit 08af9fc into master Mar 25, 2022
@marten-seemann marten-seemann deleted the improve-rand-test-coverage branch March 25, 2022 09:13
nmldiegues pushed a commit to chungthuang/quic-go that referenced this pull request Jun 6, 2022
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.

None yet

2 participants