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

test: expand unit test coverage for the [cmmon] module. #7098

Open
wants to merge 17 commits into
base: 2.x
Choose a base branch
from

Conversation

psxjoy
Copy link
Contributor

@psxjoy psxjoy commented Jan 8, 2025

  • I have registered the PR changes.
  • I have optimized the code using seata-codestyle.xml.
  • I have checked all codes using seata-checkstyle.xml.

Ⅰ. Describe what this PR did

Add unit test cases to complete the unit testing objectives for the seata-common module.
增加单元测试用例,完成commons模块的单元测试目标

Instructions Cov. Branches Cov. Missed Cxty Missed Lines Missed Missed
Before 73% 66% 431 1,183 673 2,438 182 16
After 81% 73% 319 1,138 451 2,438 102 9

Ⅱ. Does this pull request fix one issue?

fixes #187

Ⅲ. Why don't you add test cases (unit test/integration test)?

Not applicable.
不适用

Ⅳ. Describe how to verify it

Run mvn clean test

Ⅴ. Special notes for reviews

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.18%. Comparing base (2438d77) to head (81585c9).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #7098      +/-   ##
============================================
+ Coverage     52.67%   53.18%   +0.51%     
- Complexity     6697     6805     +108     
============================================
  Files          1134     1134              
  Lines         40310    40310              
  Branches       4722     4724       +2     
============================================
+ Hits          21234    21440     +206     
+ Misses        17043    16823     -220     
- Partials       2033     2047      +14     

see 20 files with indirect coverage changes

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.

Add unit test to fescar-common module
2 participants