Class JacocoCoverageResultSummary


  • public class JacocoCoverageResultSummary
    extends Object
    Summary of the Jacoco Coverage result.
    • Constructor Detail

      • JacocoCoverageResultSummary

        public JacocoCoverageResultSummary()
        Default Constructor.
      • JacocoCoverageResultSummary

        public JacocoCoverageResultSummary​(Job<?,​?> job,
                                           float lineCoverage,
                                           float methodCoverage,
                                           float classCoverage,
                                           float branchCoverage,
                                           float instructionCoverage,
                                           float complexityScore)
        Constructor with parameters.
        Parameters:
        job - the related Job
        lineCoverage - line coverage percentage
        methodCoverage - method coverage percentage
        classCoverage - class coverage percentage
        branchCoverage - branch coverage percentage
        instructionCoverage - instruction coverage percentage
        complexityScore - complexity score (not a percentage)
    • Method Detail

      • getJacocoCoverageResults

        public List<JacocoCoverageResultSummary> getJacocoCoverageResults()
        Get list of JacocoCoverageResult objects.
        Returns:
        List a List of JacocoCoverageResult objects
      • getTotalClassCoverage

        public float getTotalClassCoverage()
        Getter of the total of class coverage.
        Returns:
        float the total of class coverage.
      • getTotalBranchCoverage

        public float getTotalBranchCoverage()
        Getter of the total of block coverage.
        Returns:
        float the total of block coverage.
      • getTotalInstructionCoverage

        public float getTotalInstructionCoverage()
        Getter of the total of block coverage.
        Returns:
        float the total of block coverage.
      • getTotalComplexityScore

        public float getTotalComplexityScore()
        Getter of the total of block coverage.
        Returns:
        float the total of block coverage.
      • getTotalLineCoverage

        public float getTotalLineCoverage()
        Getter of the total of line coverage.
        Returns:
        float the total of line coverage.
      • getTotalMethodCoverage

        public float getTotalMethodCoverage()
        Getter of the total of method coverage.
        Returns:
        float the total of method coverage.
      • getJob

        public Job<?,​?> getJob()
        Returns:
        Job a job
      • getInstructionCoverage

        public float getInstructionCoverage()
      • getBranchCoverage

        public float getBranchCoverage()
      • getComplexityScore

        public float getComplexityScore()
      • getLineCoverage

        public float getLineCoverage()
        Returns:
        the lineCoverage
      • getMethodCoverage

        public float getMethodCoverage()
        Returns:
        the methodCoverage
      • getClassCoverage

        public float getClassCoverage()
        Returns:
        the classCoverage
      • setJob

        public void setJob​(Job<?,​?> job)
        Parameters:
        job - the job to set
      • setInstructionCoverage

        public void setInstructionCoverage​(float instructionCoverage)
      • setBranchCoverage

        public void setBranchCoverage​(float branchCoverage)
      • setComplexityScore

        public void setComplexityScore​(float complexityScore)
      • setLineCoverage

        public void setLineCoverage​(float lineCoverage)
        Parameters:
        lineCoverage - the lineCoverage to set
      • setMethodCoverage

        public void setMethodCoverage​(float methodCoverage)
        Parameters:
        methodCoverage - the methodCoverage to set
      • setClassCoverage

        public void setClassCoverage​(float classCoverage)
        Parameters:
        classCoverage - the classCoverage to set
      • setCoverageResults

        public void setCoverageResults​(List<JacocoCoverageResultSummary> coverageResults)
        Parameters:
        coverageResults - the list of coverage results to set