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

Refactor addrFromAnswerHeader logic with a switch #214

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

JoeTurki
Copy link
Member

Description

Replaced the if-else structure with a switch statement for better readability and future extensibility, Added a default case to handle unsupported record types explicitly (Never happens)

Copy link

codecov bot commented Jan 27, 2025

Codecov Report

Attention: Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 66.46%. Comparing base (3a20496) to head (befed39).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
conn.go 75.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #214      +/-   ##
==========================================
+ Coverage   65.75%   66.46%   +0.71%     
==========================================
  Files           1        1              
  Lines         838      841       +3     
==========================================
+ Hits          551      559       +8     
+ Misses        209      206       -3     
+ Partials       78       76       -2     
Flag Coverage Δ
go 66.46% <75.00%> (+0.71%) ⬆️
wasm 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@JoeTurki JoeTurki force-pushed the refactor/addrFromAnswerHeader branch from ce529a1 to 2bf28f4 Compare January 27, 2025 03:14
Replaced the if-else structure with a switch statement for better
readability and future extensibility, Added a default case to handle
unsupported record types explicitly (Never happens)
@JoeTurki JoeTurki force-pushed the refactor/addrFromAnswerHeader branch from 2bf28f4 to befed39 Compare January 27, 2025 03:25
@JoeTurki JoeTurki merged commit befed39 into master Jan 27, 2025
15 checks passed
@JoeTurki JoeTurki deleted the refactor/addrFromAnswerHeader branch January 27, 2025 03:37
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.

1 participant