-
Notifications
You must be signed in to change notification settings - Fork 527
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
Add unit tests for com.baidu.hugegraph.util.StringUtil #485
Conversation
Codecov Report
@@ Coverage Diff @@
## master #485 +/- ##
============================================
+ Coverage 68.99% 69.02% +0.03%
- Complexity 3280 3283 +3
============================================
Files 208 208
Lines 16193 16193
Branches 2334 2334
============================================
+ Hits 11172 11178 +6
+ Misses 3774 3765 -9
- Partials 1247 1250 +3
Continue to review full report at Codecov.
|
@Braavos96 Thank you very much for your code contribution. Yes it's very useful to improve the tests, |
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.
Looks great! there are still some comments and please don't forget to sign CLA
hugegraph-core/src/test/java/com/baidu/hugegraph/util/StringUtilTest.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/test/java/com/baidu/hugegraph/util/StringUtilTest.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/test/java/com/baidu/hugegraph/util/StringUtilTest.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/test/java/com/baidu/hugegraph/util/StringUtilTest.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/test/java/com/baidu/hugegraph/util/StringUtilTest.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/test/java/com/baidu/hugegraph/util/StringUtilTest.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/test/java/com/baidu/hugegraph/util/StringUtilTest.java
Outdated
Show resolved
Hide resolved
ab49895
to
cf80faf
Compare
Hi @javeme, I have amended the test cases to include your comments on it and also signed the CLA. |
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/core/UnitTestSuite.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/core/UnitTestSuite.java
Outdated
Show resolved
Hide resolved
@Braavos96 Thank you very much, there are some minor comments to be addressed. |
0368547
to
b6217e1
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.
Still some comments, thanks very much
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/UnitTestSuite.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/UnitTestSuite.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/core/StringUtilTest.java
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/core/StringUtilTest.java
Show resolved
Hide resolved
b6217e1
to
a1232ff
Compare
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/core/StringUtilTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/UnitTestSuite.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/unit/UnitTestSuite.java
Outdated
Show resolved
Hide resolved
These tests were written using Diffblue Cover.
a1232ff
to
84f0ecd
Compare
I've analysed your codebase and noticed that com.baidu.hugegraph.util.StringUtil is not fully tested.
I've written some tests for the methods in this class with the help of Diffblue Cover.
Hopefully, these tests will help you detect any regressions caused by future code changes. If you would find it useful to have additional tests written for this repository, I would be more than happy to look at other classes that you consider important.