|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.lindenbaum.maven.cover.ModuleCoverData
public final class ModuleCoverData
Represents the test coverage information for a single module.
Constructor Summary | |
---|---|
ModuleCoverData(String moduleName)
Constructor from a name. |
Method Summary | |
---|---|
void |
calculateStatistics()
|
Collection<FunctionCoverData> |
getFunctionCoverData()
Get the coverage data for all functions. |
FunctionCoverData |
getFunctionCoverData(String inFunction)
Get the coverage data for a given function. |
Map<Integer,List<CoverUnit>> |
getLineCoverData()
Get the coverage data for all lines. |
List<CoverUnit> |
getLineCoverData(Integer inLine)
Get the coverage data for a given line. |
String |
getModuleName()
Return the name of the module. |
int |
getNumberOfClauses()
|
int |
getNumberOfCoveredLines()
|
int |
getNumberOfFunctions()
|
int |
getNumberOfLines()
|
int |
getNumberOfNotCoveredLines()
|
boolean |
isCovered()
|
void |
putFunctionCoverData(String inFunction,
CoverUnit inUnit)
Fill the module cover data with function data. |
void |
putFunctionCoverData(String inFunction,
FunctionCoverData inCoverData)
Fill the module cover data with function data. |
void |
putLineCoverData(Integer inLine,
List<CoverUnit> inCoverData)
Fill the module cover data with line data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleCoverData(String moduleName)
moduleName
- name of the module.Method Detail |
---|
public void calculateStatistics()
public void putFunctionCoverData(String inFunction, CoverUnit inUnit)
inFunction
- identifier of the function (name/arity).inUnit
- cover data for the function.public void putFunctionCoverData(String inFunction, FunctionCoverData inCoverData)
inFunction
- identifier for the function (name/arity).inCoverData
- cover data for the function.public FunctionCoverData getFunctionCoverData(String inFunction)
inFunction
- identifier for the function (name/arity).
public Collection<FunctionCoverData> getFunctionCoverData()
public void putLineCoverData(Integer inLine, List<CoverUnit> inCoverData)
inLine
- line considered.inCoverData
- cover data for the line.public List<CoverUnit> getLineCoverData(Integer inLine)
inLine
- line considered.
public Map<Integer,List<CoverUnit>> getLineCoverData()
public String getModuleName()
public int getNumberOfFunctions()
public int getNumberOfClauses()
public int getNumberOfLines()
public boolean isCovered()
public int getNumberOfCoveredLines()
public int getNumberOfNotCoveredLines()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |