public class CheckConfiguration extends Object
Constructor and Description |
---|
CheckConfiguration()
Construct a new CheckConfiguration instance.
|
Modifier and Type | Method and Description |
---|---|
double |
getRatio(ICoverageNode.CounterEntity entity)
Get the ratio for the given CounterEntity
|
void |
setBranchRatio(Double ratio)
Set the minimum allowed code coverage for branches.
|
void |
setClassRatio(Double ratio)
Set the minimum allowed code coverage for classes.
|
void |
setComplexityRatio(Double ratio)
Set the minimum allowed code coverage for complexity.
|
void |
setInstructionRatio(Double ratio)
Set the minimum allowed code coverage for instructions.
|
void |
setLineRatio(Double ratio)
Set the minimum allowed code coverage for lines.
|
void |
setMethodRatio(Double ratio)
Set the minimum allowed code coverage for methods.
|
public CheckConfiguration()
public void setInstructionRatio(Double ratio)
ratio
- percent of instructions coveredpublic void setBranchRatio(Double ratio)
ratio
- percent of branches coveredpublic void setLineRatio(Double ratio)
ratio
- percent of lines coveredpublic void setComplexityRatio(Double ratio)
ratio
- percent of complexities coveredpublic void setMethodRatio(Double ratio)
ratio
- percent of methods coveredpublic void setClassRatio(Double ratio)
ratio
- percent of classes coveredpublic double getRatio(ICoverageNode.CounterEntity entity)
entity
- the counter typeCopyright © 2013. All Rights Reserved.