abstract class AbstractCoberturaCoverageMetric extends AbstractMetric
Abstract superclass for metrics that provide test code coverage from a Cobertura XML file.
Modifiers | Name | Description |
---|---|---|
protected static def |
LOG |
|
protected static int |
ROUNDING_MODE |
|
protected static int |
SCALE |
Type | Name and description |
---|---|
MetricLevel |
baseLevel |
String |
coberturaFile |
Type | Name and description |
---|---|
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, String packageName, Collection<MetricResult> 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 | Name |
---|---|
class AbstractMetric |
applyToClass, applyToPackage, calculateForClass, calculateForPackage, createAggregateMetricResult, isNotAnInterface |