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 unit test and some optimizations #8945

Merged
merged 5 commits into from
Sep 30, 2021

Conversation

BurningCN
Copy link
Member

What is the purpose of the change

1.Add unit test for RemoteMetadataServiceImpl and MetadataServiceURLParamsMetadataCustomizer
2.fix typo
3.field modifier
4.make Gson to be a common field

@codecov-commenter
Copy link

codecov-commenter commented Sep 28, 2021

Codecov Report

Merging #8945 (4622951) into 3.0 (acd49fe) will decrease coverage by 0.28%.
The diff coverage is 85.71%.

Impacted file tree graph

@@             Coverage Diff              @@
##                3.0    #8945      +/-   ##
============================================
- Coverage     63.75%   63.47%   -0.29%     
  Complexity      315      315              
============================================
  Files          1169     1182      +13     
  Lines         49226    50258    +1032     
  Branches       7361     7522     +161     
============================================
+ Hits          31384    31901     +517     
- Misses        14418    14888     +470     
- Partials       3424     3469      +45     
Impacted Files Coverage Δ
...ava/org/apache/dubbo/metadata/MetadataService.java 42.10% <ø> (ø)
...nt/metadata/ServiceInstanceMetadataCustomizer.java 94.28% <ø> (+2.85%) ⬆️
...ient/metadata/store/RemoteMetadataServiceImpl.java 77.33% <50.00%> (+12.05%) ⬆️
.../client/metadata/ServiceInstanceMetadataUtils.java 92.15% <100.00%> (+4.42%) ⬆️
...etadata/store/InMemoryWritableMetadataService.java 84.27% <100.00%> (+0.40%) ⬆️
...ubbo/rpc/protocol/tri/ServerTransportObserver.java 63.41% <0.00%> (-28.59%) ⬇️
...he/dubbo/common/logger/support/FailsafeLogger.java 52.80% <0.00%> (-26.47%) ⬇️
...ting/exchange/support/header/HeartbeatHandler.java 58.13% <0.00%> (-25.59%) ⬇️
.../apache/dubbo/common/context/LifecycleAdapter.java 25.00% <0.00%> (-25.00%) ⬇️
...in/java/org/apache/dubbo/config/MetricsConfig.java 78.94% <0.00%> (-21.06%) ⬇️
... and 169 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 acd49fe...4622951. Read the comment docs.

Copy link
Member

@wangchengming666 wangchengming666 left a comment

Choose a reason for hiding this comment

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

LGTM

@AlbumenJ AlbumenJ merged commit 3a10780 into apache:3.0 Sep 30, 2021
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.

4 participants