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 wrpcontext package, Add new decoder #116

Merged
merged 7 commits into from
Apr 12, 2023
Merged

Add wrpcontext package, Add new decoder #116

merged 7 commits into from
Apr 12, 2023

Conversation

renaz6
Copy link
Member

@renaz6 renaz6 commented Mar 30, 2023

@renaz6 renaz6 marked this pull request as draft March 30, 2023 14:55
@renaz6 renaz6 marked this pull request as ready for review April 4, 2023 21:38
@codecov
Copy link

codecov bot commented Apr 4, 2023

Codecov Report

Merging #116 (ff6d73c) into main (c22ee48) will increase coverage by 0.12%.
The diff coverage is 60.52%.

@@            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     
Flag Coverage Δ
unittests 45.03% <60.52%> (+0.12%) ⬆️

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

Impacted Files Coverage Δ
wrphttp/decoders.go 68.60% <60.52%> (-6.40%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

wrpcontext/wrpcontext.go Outdated Show resolved Hide resolved
wrpcontext/wrpcontext.go Outdated Show resolved Hide resolved
Copy link
Contributor

@denopink denopink left a 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
Copy link

sonarcloud bot commented Apr 10, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

40.0% 40.0% Coverage
0.0% 0.0% Duplication

@renaz6 renaz6 requested review from denopink and johnabass April 11, 2023 15:17
@@ -196,3 +197,132 @@ func TestDecodeRequestHeaders(t *testing.T) {
t.Run("Success", testDecodeRequestHeadersSuccess)
t.Run("Invalid", testDecodeRequestHeadersInvalid)
}

func testDecodeRequestSuccess(t *testing.T) {
Copy link
Contributor

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.

Copy link
Member Author

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

@renaz6 renaz6 merged commit a65c6ce into main Apr 12, 2023
@renaz6 renaz6 deleted the wrpcontext branch April 12, 2023 15:57
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.

Add a wrpcontext subpackage
3 participants