-
Notifications
You must be signed in to change notification settings - Fork 557
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: ut supplementary for pkg/network #271
Conversation
|
已经在pr中描述了循环依赖出现的场景 |
CI没有通过,可以修复一下. |
7e54e85
to
03baf95
Compare
Codecov ReportBase: 59.27% // Head: 60.30% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## develop #271 +/- ##
===========================================
+ Coverage 59.27% 60.30% +1.03%
===========================================
Files 79 84 +5
Lines 8150 8266 +116
===========================================
+ Hits 4831 4985 +154
+ Misses 2966 2928 -38
Partials 353 353
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. |
已修复 |
test: ut supplementary for pkg/network
03baf95
to
88d6325
Compare
LGTM |
What type of PR is this?
test
Check the PR title.
Translate the PR title into Chinese.
为
pkg/network
补充单元测试More detail description for this PR(en: English/zh: Chinese).
en:
unit tests coverage improvement:
pkg/network/dialer
:0% -> 100%pkg/network/netpoll
:0% -> 33.8%pkg/network/standard
:46.2% -> 75.2%ps. Unit tests for
pkg/network/standard/dialer.go
,pkg/network/standard/transport.go
,pkg/network/netpoll/dialer.go
,pkg/network/netpoll/transport.go
are not supplemented due to circular references. Comments with solutions welcome.zh:
单测覆盖率提升:
pkg/network/dialer
:0% -> 100%pkg/network/netpoll
:0% -> 33.8%pkg/network/standard
:46.2% -> 75.2%ps. 由于循环引用导致
pkg/network/standard/dialer.go
,pkg/network/standard/transport.go
,pkg/network/netpoll/dialer.go
,pkg/network/netpoll/transport.go
的单测未能补充,如有建议欢迎评论。具体细节:由于上述文件分别位于
network/standard
和network/netpoll
包当中,在模拟构造网络请求的时候,使用到了route
包的Engine,而route
包import了network/standard
和network/netpoll
Which issue(s) this PR fixes: