Class VectorCASTLoadData
- java.lang.Object
-
- com.vectorcast.plugins.vectorcastcoverage.portlet.VectorCASTLoadData
-
public final class VectorCASTLoadData extends Object
Load data of VectorCAST coverage results used by chart or grid.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Integer
getMaxHistory(Job<?,?> job)
protected static Integer
getMaxHistoryFreestyleJob(String xml)
protected static Integer
getMaxHistoryPipelineJob(String xml)
static VectorCASTCoverageResultSummary
getResultSummary(Collection<Job> jobs)
Summarize the last coverage results of all jobs, which have coverage.static boolean
hasBasisPathCoverage(Collection<Job> jobs)
static boolean
hasBranchCoverage(Collection<Job> jobs)
static boolean
hasComplexity(Collection<Job> jobs)
static boolean
hasFunctionCallCoverage(Collection<Job> jobs)
static boolean
hasFunctionCoverage(Collection<Job> jobs)
static boolean
hasMCDCCoverage(Collection<Job> jobs)
static boolean
hasStatementCoverage(Collection<Job> jobs)
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.
-
-
-
Method Detail
-
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 viewdaysNumber
- 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)
-
-