Klasse FileChangesProcessor
java.lang.Object
io.jenkins.plugins.coverage.model.FileChangesProcessor
Calculates and attaches values to the
nodes
of the coverage tree which represent the changes
concerning code and coverage.- Autor:
- Florian Orendi
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
attachChangedCodeLines
(CoverageNode coverageNode, Map<String, io.jenkins.plugins.forensics.delta.FileChanges> codeChanges) Attaches the changed code lines to the file nodes of the coverage tree.void
attachFileCoverageDeltas
(CoverageNode root, CoverageNode referenceNode, Map<String, String> oldPathMapping) Attaches the delta between the total file coverage of all currently built files against the passed reference.void
attachIndirectCoveragesChanges
(CoverageNode root, CoverageNode referenceNode, Map<String, io.jenkins.plugins.forensics.delta.FileChanges> codeChanges, Map<String, String> oldPathMapping) Attaches all found indirect coverage changes within the coverage tree, compared to a reference tree.
-
Konstruktordetails
-
FileChangesProcessor
public FileChangesProcessor()
-
-
Methodendetails
-
attachChangedCodeLines
public void attachChangedCodeLines(CoverageNode coverageNode, Map<String, io.jenkins.plugins.forensics.delta.FileChanges> codeChanges) Attaches the changed code lines to the file nodes of the coverage tree.- Parameter:
coverageNode
- The root node of the coverage treecodeChanges
- The code changes to be attached
-
attachFileCoverageDeltas
public void attachFileCoverageDeltas(CoverageNode root, CoverageNode referenceNode, Map<String, String> oldPathMapping) Attaches the delta between the total file coverage of all currently built files against the passed reference. The algorithm also covers renamed files.- Parameter:
root
- The root of the coverage treereferenceNode
- The root of the reference coverage treeoldPathMapping
- A mapping between the report paths of the current and the reference coverage tree
-
attachIndirectCoveragesChanges
public void attachIndirectCoveragesChanges(CoverageNode root, CoverageNode referenceNode, Map<String, io.jenkins.plugins.forensics.delta.FileChanges> codeChanges, Map<String, String> oldPathMapping) Attaches all found indirect coverage changes within the coverage tree, compared to a reference tree.- Parameter:
root
- The root of the tree in which indirect coverage changes are searchedreferenceNode
- The root of the reference treecodeChanges
- The code changes that has been applied between the two commits underlying the node and its referenceoldPathMapping
- A mapping between the report paths of the current and the reference coverage tree
-