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

Minor Changes to Improve Listener Code Coverage #3757

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

nibanks
Copy link
Member

@nibanks nibanks commented Jul 14, 2023

Description

Noticed that a few lines were uncovered in code coverage, so I did some minimal refactoring to clean that up.

Testing

Existing CI

Documentation

N/A

@nibanks nibanks added the Area: Core Related to the shared, core protocol logic label Jul 14, 2023
@nibanks nibanks requested a review from a team as a code owner July 14, 2023 13:02
if (QUIC_FAILED(Status)) {

if (Listener != NULL) {
CXPLAT_FREE(Listener, QUIC_POOL_LISTENER);
}
}
CXPLAT_DBG_ASSERT(QUIC_SUCCEEDED(Status) || Listener == NULL);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to remove this check entirely because we can never fail after allocating the Listener. But I put an assert here just in case someone changes that in the future.

@nibanks nibanks enabled auto-merge (squash) July 14, 2023 13:03
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (main@40b606f). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #3757   +/-   ##
=======================================
  Coverage        ?   75.58%           
=======================================
  Files           ?       56           
  Lines           ?    15530           
  Branches        ?        0           
=======================================
  Hits            ?    11738           
  Misses          ?     3792           
  Partials        ?        0           

@nibanks nibanks merged commit e76e694 into main Jul 14, 2023
418 of 421 checks passed
@nibanks nibanks deleted the nibanks/listener-coverage branch July 14, 2023 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Core Related to the shared, core protocol logic
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants