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 tests for io.seata.common.util CompressUtil, DurationUtil, ReflectionUtil #1232

Merged
merged 2 commits into from
Jun 24, 2019

Conversation

EricHetti
Copy link
Contributor

I've analysed your codebase and noticed that io.seata.common.util CompressUtil, DurationUtil, ReflectionUtil is not fully tested.
I've written some tests for the methods in this class with the help of Diffblue Cover.

Hopefully, these tests will help you detect any regressions caused by future code changes. If you would find it useful to have additional tests written for this repository, I would be more than happy to look at other classes that you consider important.

…eflectionUtil

These tests were written using Diffblue Cover.
@codecov-io
Copy link

codecov-io commented Jun 21, 2019

Codecov Report

Merging #1232 into develop will increase coverage by 0.98%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #1232      +/-   ##
=============================================
+ Coverage      43.94%   44.92%   +0.98%     
- Complexity      1451     1488      +37     
=============================================
  Files            253      253              
  Lines          10272    10272              
  Branches        1335     1335              
=============================================
+ Hits            4514     4615     +101     
+ Misses          5175     5070     -105     
- Partials         583      587       +4
Impacted Files Coverage Δ Complexity Δ
...very/registry/zk/ZookeeperRegisterServiceImpl.java 63.77% <0%> (-0.79%) 24% <0%> (ø)
...main/java/io/seata/common/util/ReflectionUtil.java 90.19% <0%> (+90.19%) 14% <0%> (+14%) ⬆️
...c/main/java/io/seata/common/util/CompressUtil.java 96.42% <0%> (+96.42%) 7% <0%> (+7%) ⬆️
...c/main/java/io/seata/common/util/DurationUtil.java 100% <0%> (+100%) 16% <0%> (+16%) ⬆️

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 eeb1dbe...a73c6d7. Read the comment docs.

@xingfudeshi
Copy link
Member

Good!Thanks!

Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Member

@lovepoem lovepoem left a comment

Choose a reason for hiding this comment

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

lgtm

@lovepoem lovepoem merged commit e9c0636 into apache:develop Jun 24, 2019
@leizhiyuan leizhiyuan modified the milestone: 0.7.0 Jul 10, 2019
nick-tan pushed a commit to nick-tan/seata that referenced this pull request Jul 12, 2019
…eflectionUtil (apache#1232)

These tests were written using Diffblue Cover.
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.

None yet

5 participants