-
Notifications
You must be signed in to change notification settings - Fork 525
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 test for traversers api #1489
Conversation
hugegraph-test/src/main/java/com/baidu/hugegraph/api/AllShortestPathsAPITest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
f2ebcbc
to
3677e56
Compare
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/AllShortestPathsAPITest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/AllShortestPathsAPITest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/CountAPITest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/CrosspointsAPITest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/AllShortestPathsAPITest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/CountAPITest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/ApiTestSuite.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/TraversersAPITestSuite.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/JaccardSimilarityAPITest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/CountAPITest.java
Outdated
Show resolved
Hide resolved
a06ce80
to
7e8fe22
Compare
protected static String getVertexId(String label, String key, String value) | ||
throws IOException { | ||
throws IOException { |
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.
align
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/BaseApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/AllShortestPathsAPITest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/AllShortestPathsAPITest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/CountAPITest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/EdgesAPITest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/EdgesApiTest.java
Outdated
Show resolved
Hide resolved
|
||
public class EdgesApiTest extends BaseApiTest { | ||
|
||
final static String EDGE_PATH = "graphs/hugegraph/traversers/edges"; |
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.
set public, can define base class TraverserApiTest
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.
these fields do not use on other place, so maybe now needn't base class
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/TraversersApiTestSuite.java
Outdated
Show resolved
Hide resolved
11bd241
to
e558a55
Compare
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/KneighborApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/KoutApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/PathsApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/PersonalRankApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/RingsApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/ShortestPathApiTest.java
Show resolved
Hide resolved
...h-test/src/main/java/com/baidu/hugegraph/api/traversers/SingleSourceShortestPathApiTest.java
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/TemplatePathsApiTest.java
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #1489 +/- ##
============================================
+ Coverage 60.30% 63.11% +2.81%
- Complexity 6390 6670 +280
============================================
Files 417 417
Lines 34298 34300 +2
Branches 4738 4740 +2
============================================
+ Hits 20683 21650 +967
+ Misses 11481 10409 -1072
- Partials 2134 2241 +107
Continue to review full report at Codecov.
|
87c108f
to
7755ba0
Compare
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/KoutApiTest.java
Outdated
Show resolved
Hide resolved
...graph-test/src/main/java/com/baidu/hugegraph/api/traversers/WeightedShortestPathApiTest.java
Outdated
Show resolved
Hide resolved
...h-test/src/main/java/com/baidu/hugegraph/api/traversers/SingleSourceShortestPathApiTest.java
Outdated
Show resolved
Hide resolved
...h-test/src/main/java/com/baidu/hugegraph/api/traversers/SingleSourceShortestPathApiTest.java
Outdated
Show resolved
Hide resolved
...h-test/src/main/java/com/baidu/hugegraph/api/traversers/SingleSourceShortestPathApiTest.java
Outdated
Show resolved
Hide resolved
...graph-test/src/main/java/com/baidu/hugegraph/api/traversers/WeightedShortestPathApiTest.java
Outdated
Show resolved
Hide resolved
...graph-test/src/main/java/com/baidu/hugegraph/api/traversers/WeightedShortestPathApiTest.java
Outdated
Show resolved
Hide resolved
hugegraph-test/src/main/java/com/baidu/hugegraph/api/traversers/ShortestPathApiTest.java
Outdated
Show resolved
Hide resolved
e649d15
to
e2f546d
Compare
c1c661e
to
33a74c3
Compare
d340777
to
5445fe7
Compare
add unit test (allshortestPath, countAPI, CrosspointsAPI, CustomizedCrosspointsAPI)