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 spring autoconfigure module unit test coverage #6198
base: 2.x
Are you sure you want to change the base?
Test: increase spring autoconfigure module unit test coverage #6198
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #6198 +/- ##
============================================
+ Coverage 51.07% 52.70% +1.62%
- Complexity 5097 5419 +322
============================================
Files 918 918
Lines 32031 32031
Branches 3865 3865
============================================
+ Hits 16361 16882 +521
+ Misses 14097 13582 -515
+ Partials 1573 1567 -6 |
3ea9016
to
380c374
Compare
...rc/test/java/io/seata/spring/boot/autoconfigure/SeataClientEnvironmentPostProcessorTest.java
Outdated
Show resolved
Hide resolved
...-client/src/test/java/io/seata/spring/boot/autoconfigure/properties/SeataPropertiesTest.java
Outdated
Show resolved
Hide resolved
4b8e119
to
18e3b50
Compare
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.
*PropertiesTest 我希望这些properties的get set的相关方法通过扫描包,解析类,进行反射将其中的method一次性处理掉,至于入参类型可以通过反射拿到参数类型,写一个switch等方式来处理。
*PropertiesTest I want the get set related methods of these properties to scan the package, parse the class, and do reflection to get rid of the method once and for all, and as for the input parameter type can be dealt with by getting the parameter type through reflection, writing a switch, etc.
Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?
fixes #6199
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews