Skip to content

add unit test #1693

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

Merged
merged 2 commits into from
Jan 17, 2022
Merged

add unit test #1693

merged 2 commits into from
Jan 17, 2022

Conversation

A-Wanderer
Copy link
Contributor

What this PR does:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

add some unit test

assert.Equal(tn.t, "2233", e.Service.Port)
tn.wg.Done()
}
func (tn *testNotify) NotifyAll([]*registry.ServiceEvent, func()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个函数上面留一个空行。函数之间不要连在一起。

@LaurenceLiZhixin
Copy link
Contributor

单元测试未通过。本地跑一下,不要依赖真实的注册组件。 @A-Wanderer

@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2022

Codecov Report

Merging #1693 (ae9d3c0) into 3.0 (0f93d1c) will increase coverage by 1.32%.
The diff coverage is 32.22%.

Impacted file tree graph

@@            Coverage Diff             @@
##              3.0    #1693      +/-   ##
==========================================
+ Coverage   41.31%   42.64%   +1.32%     
==========================================
  Files         255      255              
  Lines       14705    14719      +14     
==========================================
+ Hits         6076     6277     +201     
+ Misses       7930     7725     -205     
- Partials      699      717      +18     
Impacted Files Coverage Δ
cluster/cluster/zoneaware/cluster_interceptor.go 40.00% <0.00%> (ø)
common/proxy/proxy_factory/pass_through.go 31.91% <0.00%> (ø)
protocol/dubbo/dubbo_codec.go 1.87% <0.00%> (ø)
protocol/dubbo/dubbo_invoker.go 27.83% <0.00%> (+27.83%) ⬆️
protocol/result.go 0.00% <ø> (ø)
protocol/invocation/rpcinvocation.go 13.97% <16.32%> (-1.87%) ⬇️
protocol/dubbo3/dubbo3_invoker.go 57.39% <33.33%> (ø)
common/proxy/proxy.go 76.86% <66.66%> (ø)
cluster/cluster/zoneaware/cluster_invoker.go 80.55% <100.00%> (ø)
filter/active/filter.go 52.38% <100.00%> (ø)
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 08e4387...ae9d3c0. Read the comment docs.

Copy link
Contributor

@LaurenceLiZhixin LaurenceLiZhixin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@A-Wanderer A-Wanderer force-pushed the add-ut branch 3 times, most recently from 12ea66b to f4784c0 Compare January 17, 2022 11:17
@LaurenceLiZhixin LaurenceLiZhixin merged commit 78b6c8a into apache:3.0 Jan 17, 2022
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.

6 participants