-
Notifications
You must be signed in to change notification settings - Fork 8.9k
test: add UT for GlobalTransactionScanner class #7433
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds unit tests for the GlobalTransactionScanner class by updating the changelog entries.
- Added changelog entries in the Chinese and English changelog files to note the new unit tests
- Ensured consistency in the changelog description for tracking test coverage updates
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| changes/zh-cn/2.x.md | Added test entry for GlobalTransactionScanner in Chinese |
| changes/en-us/2.x.md | Added test entry for GlobalTransactionScanner in English |
Comments suppressed due to low confidence (1)
changes/zh-cn/2.x.md:91
- [nitpick] Consider revising the changelog entry wording for GlobalTransactionScanner to match the style of similar entries. For example, change it to '为 GlobalTransactionScanner 类添加了单元测试'.
+- [[#7433](https://github.com/apache/incubator-seata/pull/7433)] 增加对 GlobalTransactionScanner 添加了测试
spring/src/test/java/org/apache/seata/spring/annotation/GlobalTransactionScannerTest.java
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #7433 +/- ##
============================================
+ Coverage 58.33% 59.46% +1.13%
+ Complexity 575 547 -28
============================================
Files 1269 1281 +12
Lines 45774 46186 +412
Branches 5555 5568 +13
============================================
+ Hits 26700 27463 +763
+ Misses 16510 16154 -356
- Partials 2564 2569 +5 🚀 New features to boost your workflow:
|
funky-eyes
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Please send your DingTalk ID to jianbin@apache.org, and I will invite you to join the Seata developers group.
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
Fixes: #7376
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews