Skip to content

unit test for common-utils - #1891

Merged
beiwei30 merged 2 commits into
apache:masterfrom
beiwei30:commonutis-test
Jun 6, 2018
Merged

beiwei30 merged 2 commits into
apache:masterfrom
beiwei30:commonutis-test

Conversation

@beiwei30

@beiwei30 beiwei30 commented Jun 6, 2018

Copy link
Copy Markdown
Member

What is the purpose of the change

#1682: Enhance the test coverage part-4 : dubbo-common/src/main/java/com/alibaba/dubbo/common/status(store|threadpoolutils) modules

Brief changelog

dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/NetUtils.java
dubbo-common/src/main/java/com/alibaba/dubbo/common/utils/PojoUtils.java
dubbo-common/src/test/java/com/alibaba/dubbo/common/utils/LRUCacheTest.java
dubbo-common/src/test/java/com/alibaba/dubbo/common/utils/NamedThreadFactoryTest.java
dubbo-common/src/test/java/com/alibaba/dubbo/common/utils/NetUtilsTest.java
dubbo-common/src/test/java/com/alibaba/dubbo/common/utils/PojoUtilsTest.java

Verifying this change

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a GITHUB_issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn clean install -DskipTests & mvn clean test-compile failsafe:integration-test to make sure unit-test and integration-test pass.
  • If this contribution is large, please follow the Software Donation Guide.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #1891 into master will increase coverage by 0.46%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1891      +/-   ##
============================================
+ Coverage     42.66%   43.12%   +0.46%     
- Complexity     4726     4786      +60     
============================================
  Files           646      646              
  Lines         30645    30645              
  Branches       5367     5367              
============================================
+ Hits          13076    13217     +141     
+ Misses        15516    15368     -148     
- Partials       2053     2060       +7
Impacted Files Coverage Δ Complexity Δ
.../java/com/alibaba/dubbo/common/utils/NetUtils.java 61.65% <ø> (+45.86%) 44 <0> (+31) ⬆️
...java/com/alibaba/dubbo/common/utils/PojoUtils.java 69.67% <0%> (+20.11%) 83 <2> (+20) ⬆️
...aba/dubbo/remoting/transport/mina/MinaChannel.java 42.25% <0%> (-11.27%) 15% <0%> (-1%)
.../dubbo/remoting/transport/netty4/NettyChannel.java 56.25% <0%> (-8.75%) 20% <0%> (-2%)
...a/dubbo/remoting/transport/netty4/NettyServer.java 72.13% <0%> (-3.28%) 9% <0%> (-1%)
...baba/dubbo/remoting/transport/mina/MinaClient.java 59.37% <0%> (+1.56%) 9% <0%> (+1%) ⬆️
...om/alibaba/dubbo/rpc/filter/ActiveLimitFilter.java 83.33% <0%> (+5.55%) 6% <0%> (+1%) ⬆️
...ubbo/rpc/protocol/dubbo/ChannelWrappedInvoker.java 45.83% <0%> (+8.33%) 3% <0%> (ø) ⬇️
... and 1 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 00c4201...7a61306. Read the comment docs.

@beiwei30
beiwei30 merged commit 04c26e6 into apache:master Jun 6, 2018
@beiwei30
beiwei30 deleted the commonutis-test branch June 6, 2018 08:23
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.

2 participants