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: increase seata-core module unit test coverage #6168

Closed
wants to merge 0 commits into from

Conversation

lightClouds917
Copy link
Contributor

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

#6122

Ⅱ. Does this pull request fix one issue?

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

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Merging #6168 (9e1abf3) into 2.x (501d431) will increase coverage by 0.25%.
Report is 1 commits behind head on 2.x.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #6168      +/-   ##
============================================
+ Coverage     48.98%   49.24%   +0.25%     
- Complexity     4782     4821      +39     
============================================
  Files           913      913              
  Lines         31697    31697              
  Branches       3823     3823              
============================================
+ Hits          15528    15608      +80     
+ Misses        14632    14547      -85     
- Partials       1537     1542       +5     
Files Coverage Δ
...n/java/io/seata/core/rpc/netty/ChannelManager.java 0.00% <ø> (ø)
...va/io/seata/integration/tx/api/util/DubboUtil.java 0.00% <0.00%> (ø)

... and 12 files with indirect coverage changes

@codecov-commenter
Copy link

codecov-commenter commented Dec 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e590de5) 48.95% compared to head (9458198) 49.72%.

❗ Current head 9458198 differs from pull request most recent head 4b2f41d. Consider uploading reports for the commit 4b2f41d to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##                2.x    #6168      +/-   ##
============================================
+ Coverage     48.95%   49.72%   +0.77%     
- Complexity     4778     4891     +113     
============================================
  Files           915      915              
  Lines         31892    31892              
  Branches       3853     3853              
============================================
+ Hits          15613    15859     +246     
+ Misses        14720    14468     -252     
- Partials       1559     1565       +6     

see 21 files with indirect coverage changes

@lightClouds917 lightClouds917 changed the title [WIP] Test: increase seata-core module unit test coverage Test: increase seata-core module unit test coverage Dec 21, 2023
/**
* The RamSignAdapter Test
*
* @author zhongxiang.wang
Copy link
Member

Choose a reason for hiding this comment

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

Please remove @author annotation

/**
* The CompressorType Test
*
* @author zhongxiang.wang
Copy link
Member

Choose a reason for hiding this comment

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

Please remove @author annotation

- [[#6081](https://github.com/apache/incubator-seata/pull/6081)] add `test-os.yml` for testing the OS
- [[#PR_NO](https://github.com/apache/incubator-seata/pull/PR_NO)] A brief and accurate description of PR
- [[#6125](https://github.com/apache/incubator-seata/pull/6125)] unbind xid in TransactionTemplateTest
- [[#6081](https://github.com/seata/seata/pull/6081)] add `test-os.yml` for testing the OS
Copy link
Member

Choose a reason for hiding this comment

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

I think need revert this line, and all seata/seata should change to apache/incubator-seata.

Assertions.assertEquals(32, signingKey.length);
Assertions.assertArrayEquals(expectArray, signingKey);
} catch (NoSuchMethodException | InvocationTargetException | IllegalAccessException e) {
throw new RuntimeException(e);
Copy link
Member

Choose a reason for hiding this comment

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

Why is an exception caught and thrown in UT, and what does it do?

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