Skip to content
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

fix not check last step of count api #1013

Merged
merged 2 commits into from
Jun 8, 2020
Merged

fix not check last step of count api #1013

merged 2 commits into from
Jun 8, 2020

Conversation

zhoney
Copy link
Contributor

@zhoney zhoney commented Jun 2, 2020

Change-Id: Idc61cad83e98924cc69fef79e83b0f8d1eb3dd27

@codecov
Copy link

codecov bot commented Jun 2, 2020

Codecov Report

Merging #1013 into master will decrease coverage by 0.03%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1013      +/-   ##
============================================
- Coverage     69.15%   69.11%   -0.04%     
- Complexity     5361     5362       +1     
============================================
  Files           328      328              
  Lines         26215    26232      +17     
  Branches       3731     3732       +1     
============================================
+ Hits          18129    18131       +2     
- Misses         6327     6343      +16     
+ Partials       1759     1758       -1     
Impacted Files Coverage Δ Complexity Δ
...du/hugegraph/traversal/optimize/TraversalUtil.java 59.17% <0.00%> (-2.41%) 118.00 <0.00> (ø)
...c/main/java/com/baidu/hugegraph/task/HugeTask.java 70.09% <0.00%> (+0.33%) 70.00% <0.00%> (+1.00%)
...om/baidu/hugegraph/task/StandardTaskScheduler.java 86.52% <0.00%> (+0.35%) 68.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 073b070...86fa314. Read the comment docs.

@@ -69,7 +69,8 @@ public long count(Id source, List<Step> steps,
if (stepNum == 1) {
// Just one step, query count and return
count.add(this.edgesCount(source, firstStep.direction,
firstStep.labels, firstStep.properties));
firstStep.labels, firstStep.properties,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.count

lastStep.properties));
lastStep.labels, lastStep.properties,
lastStep.degree,
lastStep.skipDegree));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer define a var

Change-Id: Idc61cad83e98924cc69fef79e83b0f8d1eb3dd27
Change-Id: Iacf4ed12fd8c30e70b0927024a6a32bd52408e61
@Linary Linary merged commit 9e6d56f into master Jun 8, 2020
@Linary Linary deleted the fix-count branch June 8, 2020 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants