public abstract class TestCoverage
extends java.lang.Object
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 coverage to the initial state.
|
abstract java.lang.String |
toString()
Returns a string representing this coverage.
|
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()
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