Klasse FileChangesProcessor

java.lang.Object
io.jenkins.plugins.coverage.model.FileChangesProcessor

public class FileChangesProcessor extends Object
Calculates and attaches values to the nodes of the coverage tree which represent the changes concerning code and coverage.
Autor:
Florian Orendi
  • 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 tree
      codeChanges - 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 tree
      referenceNode - The root of the reference coverage tree
      oldPathMapping - 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 searched
      referenceNode - The root of the reference tree
      codeChanges - The code changes that has been applied between the two commits underlying the node and its reference
      oldPathMapping - A mapping between the report paths of the current and the reference coverage tree