|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICounter
A counter holds the missed and the covered number of particular items like classes, methods, branches or instructions.
Nested Class Summary | |
---|---|
static class |
ICounter.CounterValue
Different values provided by a counter. |
Field Summary | |
---|---|
static int |
EMPTY
Status flag for no items (value is 0x00). |
static int |
FULLY_COVERED
Status flag when all items are covered (value is 0x02). |
static int |
NOT_COVERED
Status flag when all items are not covered (value is 0x01). |
static int |
PARTLY_COVERED
Status flag when items are partly covered (value is 0x03). |
Method Summary | |
---|---|
int |
getCoveredCount()
Returns the count of covered items. |
double |
getCoveredRatio()
Calculates the ratio of covered to total count items. |
int |
getMissedCount()
Returns the count of missed items. |
double |
getMissedRatio()
Calculates the ratio of missed to total count items. |
int |
getStatus()
Returns the coverage status of this counter. |
int |
getTotalCount()
Returns the total count of items. |
double |
getValue(ICounter.CounterValue value)
Returns the counter value of the given type. |
Field Detail |
---|
static final int EMPTY
static final int NOT_COVERED
static final int FULLY_COVERED
static final int PARTLY_COVERED
Method Detail |
---|
double getValue(ICounter.CounterValue value)
value
- value type to return
int getTotalCount()
int getCoveredCount()
int getMissedCount()
double getCoveredRatio()
double getMissedRatio()
int getStatus()
EMPTY
,
NOT_COVERED
,
PARTLY_COVERED
,
FULLY_COVERED
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |