Class VectorCASTCoverageResultSummary
- java.lang.Object
-
- com.vectorcast.plugins.vectorcastcoverage.portlet.bean.VectorCASTCoverageResultSummary
-
public class VectorCASTCoverageResultSummary extends Object
Summary of the VectorCAST Coverage result.
-
-
Constructor Summary
Constructors Constructor Description VectorCASTCoverageResultSummary()Default Constructor.VectorCASTCoverageResultSummary(Job job, float lBasisPathCoverage, float lMCDCCoverage, float lBranchCoverage, float lStatementCoverage, float lFunctionCoverage, float lFunctionCallCoverage, float lComplexity)Constructor with parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VectorCASTCoverageResultSummaryaddCoverageResult(VectorCASTCoverageResultSummary coverageResult)Add a coverage result.floatgetBasisPathCoverage()floatgetBranchCoverage()floatgetComplexity()List<VectorCASTCoverageResultSummary>getCoverageResults()floatgetFunctionCallCoverage()floatgetFunctionCoverage()JobgetJob()floatgetMCDCCoverage()floatgetStatementCoverage()floatgetTotalBasisPathCoverage()Getter of the total of basisPath coverage.floatgetTotalBranchCoverage()Get the total branch coveragefloatgetTotalComplexity()Get the total complexityfloatgetTotalFunctionCallCoverage()Getter of the total of function call coverage.floatgetTotalFunctionCoverage()Getter of the total of function coverage.floatgetTotalMCDCCoverage()Getter of the total of MCDC coverage.floatgetTotalStatementCoverage()Getter of the total of class coverage.List<VectorCASTCoverageResultSummary>getVectorCASTCoverageResults()Get list of VectorCASTCoverageResultSummary objects.booleanhasBasisPathCoverage()booleanhasBranchCoverage()booleanhasComplexity()booleanhasFunctionCallCoverage()booleanhasFunctionCoverage()booleanhasMCDCCoverage()booleanhasStatementCoverage()voidsetBasisPathCoverage(float BasisPathCoverage)voidsetBranchCoverage(float BranchCoverage)voidsetComplexity(float Complexity)voidsetCoverageResults(List<VectorCASTCoverageResultSummary> coverageResults)voidsetFunctionCallCoverage(float FunctionCallCoverage)voidsetFunctionCoverage(float FunctionCoverage)voidsetJob(Job job)voidsetMCDCCoverage(float MCDCCoverage)voidsetStatementCoverage(float StatementCoverage)
-
-
-
Constructor Detail
-
VectorCASTCoverageResultSummary
public VectorCASTCoverageResultSummary()
Default Constructor.
-
VectorCASTCoverageResultSummary
public VectorCASTCoverageResultSummary(Job job, float lBasisPathCoverage, float lMCDCCoverage, float lBranchCoverage, float lStatementCoverage, float lFunctionCoverage, float lFunctionCallCoverage, float lComplexity)
Constructor with parameters.- Parameters:
job- the related JoblBasisPathCoverage- basis path coveragelMCDCCoverage- MCDC coveragelBranchCoverage- branch coveragelFunctionCoverage- function coveragelFunctionCallCoverage- function call coveragelStatementCoverage- statement coveragelComplexity- complexity
-
-
Method Detail
-
addCoverageResult
public VectorCASTCoverageResultSummary addCoverageResult(VectorCASTCoverageResultSummary coverageResult)
Add a coverage result.- Parameters:
coverageResult- a coverage result- Returns:
- VectorCASTCoverageResultSummary summary of the VectorCAST coverage result
-
getVectorCASTCoverageResults
public List<VectorCASTCoverageResultSummary> getVectorCASTCoverageResults()
Get list of VectorCASTCoverageResultSummary objects.- Returns:
- List a List of VectorCASTCoverageResultSummary objects
-
getTotalStatementCoverage
public float getTotalStatementCoverage()
Getter of the total of class coverage.- Returns:
- float the total of class coverage.
-
getTotalComplexity
public float getTotalComplexity()
Get the total complexity- Returns:
- total complexity
-
getTotalBranchCoverage
public float getTotalBranchCoverage()
Get the total branch coverage- Returns:
- total branch coverage
-
getTotalBasisPathCoverage
public float getTotalBasisPathCoverage()
Getter of the total of basisPath coverage.- Returns:
- float the total of basisPath coverage.
-
getTotalMCDCCoverage
public float getTotalMCDCCoverage()
Getter of the total of MCDC coverage.- Returns:
- float the total of MCDC coverage.
-
getTotalFunctionCoverage
public float getTotalFunctionCoverage()
Getter of the total of function coverage.- Returns:
- float the total of branch coverage.
-
getTotalFunctionCallCoverage
public float getTotalFunctionCallCoverage()
Getter of the total of function call coverage.- Returns:
- float the total of function call coverage.
-
getJob
public Job getJob()
- Returns:
- Job a job
-
getBasisPathCoverage
public float getBasisPathCoverage()
- Returns:
- the BasisPathCoverage
-
getComplexity
public float getComplexity()
- Returns:
- the BasisPathCoverage
-
getMCDCCoverage
public float getMCDCCoverage()
- Returns:
- the MCDCCoverage
-
getFunctionCoverage
public float getFunctionCoverage()
- Returns:
- the FunctionCoverage
-
getFunctionCallCoverage
public float getFunctionCallCoverage()
- Returns:
- the FunctionCallCoverage
-
getBranchCoverage
public float getBranchCoverage()
- Returns:
- the BranchCoverage
-
getStatementCoverage
public float getStatementCoverage()
- Returns:
- the StatementCoverage
-
hasStatementCoverage
public boolean hasStatementCoverage()
-
hasComplexity
public boolean hasComplexity()
-
hasBranchCoverage
public boolean hasBranchCoverage()
-
hasBasisPathCoverage
public boolean hasBasisPathCoverage()
-
hasMCDCCoverage
public boolean hasMCDCCoverage()
-
hasFunctionCoverage
public boolean hasFunctionCoverage()
-
hasFunctionCallCoverage
public boolean hasFunctionCallCoverage()
-
setJob
public void setJob(Job job)
- Parameters:
job- the job to set
-
setBasisPathCoverage
public void setBasisPathCoverage(float BasisPathCoverage)
- Parameters:
BasisPathCoverage- the BasisPathCoverage to set
-
setComplexity
public void setComplexity(float Complexity)
-
setMCDCCoverage
public void setMCDCCoverage(float MCDCCoverage)
- Parameters:
MCDCCoverage- the MCDCCoverage to set
-
setBranchCoverage
public void setBranchCoverage(float BranchCoverage)
- Parameters:
BranchCoverage- the BranchCoverage to set
-
setFunctionCoverage
public void setFunctionCoverage(float FunctionCoverage)
- Parameters:
FunctionCoverage- the FunctionCoverage to set
-
setFunctionCallCoverage
public void setFunctionCallCoverage(float FunctionCallCoverage)
- Parameters:
FunctionCallCoverage- the FunctionCallCoverage to set
-
setStatementCoverage
public void setStatementCoverage(float StatementCoverage)
- Parameters:
StatementCoverage- the StatementCoverage to set
-
getCoverageResults
public List<VectorCASTCoverageResultSummary> getCoverageResults()
- Returns:
- a list of coverage results
-
setCoverageResults
public void setCoverageResults(List<VectorCASTCoverageResultSummary> coverageResults)
- Parameters:
coverageResults- the list of coverage results to set
-
-