Skip to content

Commit

Permalink
[REVIEW] Set stats bi-directionally for ADDED nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
terahidro2003 committed Feb 5, 2025
1 parent 6b0eacd commit 2379943
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ private void setStatistic(final CallTreeNode rawDataNode, final MeasuredNode ser
serializeNode.setStatistic(rawDataNode.getTestcaseStatistic());
} else {
LOG.debug(rawDataNode.getCall() + " " + rawDataNode.getOtherKiekerPattern());
serializeNode.setStatistic(rawDataNode.getPartialTestcaseStatistic());
if (rawDataNode.getCall().equals(ADDED) &&
!rawDataNode.getOtherKiekerPattern().equals(ADDED)) {
serializeNode.setStatistic(rawDataNode.getOtherCommitNode().getPartialTestcaseStatistic());
} else {
serializeNode.setStatistic(rawDataNode.getPartialTestcaseStatistic());
}
}
}

Expand Down

0 comments on commit 2379943

Please sign in to comment.