-
Notifications
You must be signed in to change notification settings - Fork 464
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
test: add new test cases for pkg/protocol/response.go #374
Conversation
… pkg/protocol/response.go increased to 85.6%.
… pkg/protocol/response.go increased to 85.6%.
… pkg/protocol/response.go increased to 85.6%.
You can improve your description according to the PR template and can describe the situation of unit test coverage. |
Codecov ReportBase: 67.53% // Head: 67.87% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #374 +/- ##
===========================================
+ Coverage 67.53% 67.87% +0.34%
===========================================
Files 89 89
Lines 8608 8608
===========================================
+ Hits 5813 5843 +30
+ Misses 2435 2404 -31
- Partials 360 361 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Please resign the CLA🙏 |
done
|
It is best to note the change in overall coverage in the description. |
done, sorry to close this pr... |
resolve blank line.
What type of PR is this?
test
Check the PR title.
(Optional) Translate the PR title into Chinese.
测试:为pkg/protocol/response.go文件新增测试用例。
(Optional) More detail description for this PR(en: English/zh: Chinese).
en: add test cases for the following features for pkg/protocol/response.go and the test coverage rate of pkg/protocol/response.go is improved to 81.08%.
1.TestResponseMustSkipBody:test when to skip body read and copy.
2.TestResponseBodyGunzip: test compress and decompress body with gzip.
3.TestResponseSwapResponseBody.
4.TestResponseAcquireResponse: test acquire and release response.
zh(optional):
Which issue(s) this PR fixes:
#257