-
Notifications
You must be signed in to change notification settings - Fork 7
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 wrpcontext package, Add new decoder #116
Conversation
renaz6
commented
Mar 30, 2023
- closes Add a wrpcontext subpackage #114 and Add a standard way of decoding a *http.Request into a message #115
Codecov Report
@@ Coverage Diff @@
## main #116 +/- ##
==========================================
+ Coverage 44.91% 45.03% +0.12%
==========================================
Files 24 24
Lines 4629 4667 +38
==========================================
+ Hits 2079 2102 +23
- Misses 2367 2380 +13
- Partials 183 185 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with john's requested changes
SonarCloud Quality Gate failed. |
@@ -196,3 +197,132 @@ func TestDecodeRequestHeaders(t *testing.T) { | |||
t.Run("Success", testDecodeRequestHeadersSuccess) | |||
t.Run("Invalid", testDecodeRequestHeadersInvalid) | |||
} | |||
|
|||
func testDecodeRequestSuccess(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a blocker, but we should start moving consistently to github.com/stretchr/testify/suite for test suites. That makes these kinds of subtests much clearer and easier to implement and maintain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this issue to cover this work: #121