Skip to content

Commit

Permalink
try fix org.apache.hugegraph.api.traverser.EdgeExistenceAPITest#testE…
Browse files Browse the repository at this point in the history
…dgeExistenceGet
  • Loading branch information
VGalaxies committed Oct 3, 2024
1 parent 9242757 commit 81fcf27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,8 @@ private Query writeQueryEdgePrefixCondition(ConditionQuery cq) {
if (key == HugeKeys.DIRECTION) {
// Direction is null, set to OUT
value = Directions.OUT;
} else if (key == HugeKeys.SUB_LABEL) {
value = cq.condition(HugeKeys.LABEL);

Check warning on line 734 in hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/serializer/BinarySerializer.java

View check run for this annotation

Codecov / codecov/patch

hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/serializer/BinarySerializer.java#L734

Added line #L734 was not covered by tests
} else {
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ private static void verifyEdgesConditionQuery(ConditionQuery query) {
for (HugeKeys key : EdgeId.KEYS) {
Object value = query.condition(key);
if (value == null) {
break;
continue;
}
matched++;
}
Expand Down

0 comments on commit 81fcf27

Please sign in to comment.