Groovy Documentation

org.gmetrics.metric.coverage
[Groovy] Class CoberturaCoverageFile

java.lang.Object
  org.gmetrics.metric.coverage.CoberturaCoverageFile

class CoberturaCoverageFile

Parses and provides access to a Cobertura "coverage.xml"

Authors:
Chris Mair


Constructor Summary
CoberturaCoverageFile(String coberturaFile, String attributeName, String packageNamePrefixes)

 
Method Summary
protected groovy.util.slurpersupport.GPathResult findClassElement(String className)

protected groovy.util.slurpersupport.GPathResult findInnerClasses(String className)

protected groovy.util.slurpersupport.GPathResult findMatchingPackageElement(String packageName, String packagePath)

protected groovy.util.slurpersupport.GPathResult findMethodElement(String methodName, int numParameters, String methodSignature, groovy.util.slurpersupport.GPathResult classXmlElement)

protected groovy.util.slurpersupport.GPathResult findPackageElement(String packageName)

protected groovy.util.slurpersupport.GPathResult findPackageElementMatchingPrefix(String packagePath)

protected groovy.util.slurpersupport.GPathResult findPackageWithPrefix(String packagePath, String prefix, def matchingPackageElement)

protected groovy.util.slurpersupport.GPathResult getCoberturaXml()

protected BigDecimal getOverallCoverageRate()

protected boolean hasInnerClasses(String className)

protected BigDecimal parseCoverageRate(groovy.util.slurpersupport.GPathResult node)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

CoberturaCoverageFile

CoberturaCoverageFile(String coberturaFile, String attributeName, String packageNamePrefixes)


 
Method Detail

findClassElement

protected groovy.util.slurpersupport.GPathResult findClassElement(String className)


findInnerClasses

protected groovy.util.slurpersupport.GPathResult findInnerClasses(String className)


findMatchingPackageElement

protected groovy.util.slurpersupport.GPathResult findMatchingPackageElement(String packageName, String packagePath)


findMethodElement

protected groovy.util.slurpersupport.GPathResult findMethodElement(String methodName, int numParameters, String methodSignature, groovy.util.slurpersupport.GPathResult classXmlElement)


findPackageElement

protected groovy.util.slurpersupport.GPathResult findPackageElement(String packageName)


findPackageElementMatchingPrefix

protected groovy.util.slurpersupport.GPathResult findPackageElementMatchingPrefix(String packagePath)


findPackageWithPrefix

protected groovy.util.slurpersupport.GPathResult findPackageWithPrefix(String packagePath, String prefix, def matchingPackageElement)


getCoberturaXml

protected groovy.util.slurpersupport.GPathResult getCoberturaXml()


getOverallCoverageRate

protected BigDecimal getOverallCoverageRate()


hasInnerClasses

protected boolean hasInnerClasses(String className)


parseCoverageRate

protected BigDecimal parseCoverageRate(groovy.util.slurpersupport.GPathResult node)


 

Groovy Documentation