|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.gmetrics.metric.AbstractMetric
org.gmetrics.metric.coverage.AbstractCoberturaCoverageMetric
abstract class AbstractCoberturaCoverageMetric extends AbstractMetric
Abstract superclass for metrics that provide test code coverage from a Cobertura XML file.
| Field Summary | |
|---|---|
protected static def |
LOG
|
protected static int |
ROUNDING_MODE
|
protected static int |
SCALE
|
| Property Summary | |
|---|---|
MetricLevel |
baseLevel
|
String |
coberturaFile
|
String |
packageNamePrefixes
|
| Method Summary | |
|---|---|
MetricResult
|
applyToClosure(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression, SourceCode sourceCode)
|
MetricResult
|
applyToMethod(org.codehaus.groovy.ast.MethodNode methodNode, SourceCode sourceCode)
|
MetricResult
|
calculate(org.codehaus.groovy.ast.MethodNode methodNode, SourceCode sourceCode)
|
protected ClassMetricResult
|
calculateForClass(org.codehaus.groovy.ast.ClassNode classNode, SourceCode sourceCode)
|
protected MetricResult
|
calculateForPackage(String packagePath, Collection childMetricResults)
|
protected SingleNumberMetricResult
|
calculateMethodResult(org.codehaus.groovy.ast.MethodNode methodNode, groovy.util.slurpersupport.GPathResult classXmlElement)
|
protected groovy.util.slurpersupport.GPathResult
|
findMethodElement(org.codehaus.groovy.ast.MethodNode methodNode, groovy.util.slurpersupport.GPathResult classXmlElement)
|
protected String
|
getAttributeName()
|
protected Ratio
|
getCoverageRatioForClass(String className)
|
protected Ratio
|
getCoverageRatioForSingleClass(def matchingClassElement)
@return the calculated coverage ratio for the Cobertura XML class element |
| Methods inherited from class AbstractMetric | |
|---|---|
| applyToClass, applyToPackage, calculateForClass, calculateForPackage, createAggregateMetricResult, isNotAnInterface |
| Field Detail |
|---|
@SuppressWarnings('LoggerWithWrongModifiers')
protected static final def LOG
protected static final int ROUNDING_MODE
protected static final int SCALE
| Property Detail |
|---|
final MetricLevel baseLevel
String coberturaFile
String packageNamePrefixes
| Method Detail |
|---|
@Override MetricResult applyToClosure(org.codehaus.groovy.ast.expr.ClosureExpression closureExpression, SourceCode sourceCode)
@Override MetricResult applyToMethod(org.codehaus.groovy.ast.MethodNode methodNode, SourceCode sourceCode)
@Override MetricResult calculate(org.codehaus.groovy.ast.MethodNode methodNode, SourceCode sourceCode)
@Override protected ClassMetricResult calculateForClass(org.codehaus.groovy.ast.ClassNode classNode, SourceCode sourceCode)
@Override protected MetricResult calculateForPackage(String packagePath, Collection childMetricResults)
protected SingleNumberMetricResult calculateMethodResult(org.codehaus.groovy.ast.MethodNode methodNode, groovy.util.slurpersupport.GPathResult classXmlElement)
protected groovy.util.slurpersupport.GPathResult findMethodElement(org.codehaus.groovy.ast.MethodNode methodNode, groovy.util.slurpersupport.GPathResult classXmlElement)
protected String getAttributeName()
protected Ratio getCoverageRatioForClass(String className)
protected Ratio getCoverageRatioForSingleClass(def matchingClassElement)
Groovy Documentation