Class VectorCASTLoadData


  • public final class VectorCASTLoadData
    extends Object
    Load data of VectorCAST coverage results used by chart or grid.
    • Method Detail

      • getMaxHistoryFreestyleJob

        protected static Integer getMaxHistoryFreestyleJob​(String xml)
      • getMaxHistoryPipelineJob

        protected static Integer getMaxHistoryPipelineJob​(String xml)
      • getMaxHistory

        protected static Integer getMaxHistory​(Job<?,​?> job)
      • loadChartDataWithinRange

        public static Map<LocalDate,​VectorCASTCoverageResultSummary> loadChartDataWithinRange​(List<Job> jobs,
                                                                                                    int daysNumber)
        Get VcastCoverage coverage results of all jobs and store into a sorted HashMap by date.
        Parameters:
        jobs - jobs of Dashboard view
        daysNumber - number of days
        Returns:
        Map The sorted summaries
      • getResultSummary

        public static VectorCASTCoverageResultSummary getResultSummary​(Collection<Job> jobs)
        Summarize the last coverage results of all jobs, which have coverage.
        Parameters:
        jobs - a final Collection of Job objects
        Returns:
        VectorCASTCoverageResultSummary the result summary
      • hasStatementCoverage

        public static boolean hasStatementCoverage​(Collection<Job> jobs)
      • hasBranchCoverage

        public static boolean hasBranchCoverage​(Collection<Job> jobs)
      • hasComplexity

        public static boolean hasComplexity​(Collection<Job> jobs)
      • hasBasisPathCoverage

        public static boolean hasBasisPathCoverage​(Collection<Job> jobs)
      • hasMCDCCoverage

        public static boolean hasMCDCCoverage​(Collection<Job> jobs)
      • hasFunctionCoverage

        public static boolean hasFunctionCoverage​(Collection<Job> jobs)
      • hasFunctionCallCoverage

        public static boolean hasFunctionCallCoverage​(Collection<Job> jobs)