-
Notifications
You must be signed in to change notification settings - Fork 8.9k
test:add unit tests for DBType and RedisKeyConstants in core module #7874
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
base: 2.x
Are you sure you want to change the base?
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 2.x #7874 +/- ##
============================================
- Coverage 71.20% 71.14% -0.06%
Complexity 797 797
============================================
Files 1300 1300
Lines 49620 49620
Branches 5874 5874
============================================
- Hits 35331 35302 -29
- Misses 11371 11403 +32
+ Partials 2918 2915 -3 🚀 New features to boost your workflow:
|
|
|
||
| import static org.junit.jupiter.api.Assertions.*; | ||
|
|
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.
Well done, here are a few suggestions: Please do not use wildcards *
| import static org.junit.jupiter.api.Assertions.*; | ||
|
|
||
| /** |
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.
ditto
| */ | ||
| class DBTypeTest { | ||
|
|
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.
Why is the default access modifier being used here?
|
Please apply |
|
Done! mvn spotless:apply was already applied - no changes needed. The code is already formatted correctly. |
|
Thank you for the review @maple525866! The wildcard imports have been replaced with explicit imports in commit 38060fe. The class uses default (package-private) access modifier because JUnit 5 doesn't require public access for test classes - this is the recommended practice in JUnit 5. However, I've added public modifier for consistency with other test classes in the project. |
maple525866
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 register this PR and your Github ID in change logs. |
Closes #6502 - Added unit tests for DBType and RedisKeyConstants to improve test coverage of core module