public abstract class TestCoverage
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.math.BigDecimal |
FULL_COVERAGE_PERCENTAGE
The number representing full coverage percentage, that is,
BigDecimal.valueOf(100) . |
Constructor and Description |
---|
TestCoverage() |
Modifier and Type | Method and Description |
---|---|
abstract java.math.BigDecimal |
getPercentage()
Returns a percentage representation of this test coverage with a default precision.
|
abstract java.math.BigDecimal |
getPercentage(int precision)
Returns a percentage representation of this test coverage with the specified precision.
|
abstract boolean |
isFull()
Tests if this coverage is full.
|
abstract void |
reset()
Resets this to the initial state.
|
abstract java.lang.String |
toString()
Returns a string representing this coverage.
|
public static final java.math.BigDecimal FULL_COVERAGE_PERCENTAGE
BigDecimal.valueOf(100)
.public abstract java.math.BigDecimal getPercentage()
Method of computation of this value and metrics is used for it depend on a specific type of this test coverage. It is guaranteed that the value is precise enough to reflect the smallest possible change in a coverage information.
public abstract java.math.BigDecimal getPercentage(int precision)
Method of computation of this value and metrics is used for it depend on a specific type of this test coverage.
precision
- a number of decimal places in the resultpublic abstract boolean isFull()
Method of testing and metrics is used for it depend on a specific type of this test coverage.
true
if this coverage is full. Otherwise returns false
public abstract void reset()
public abstract java.lang.String toString()
toString
in class java.lang.Object