net.sourceforge.cobertura.reporting.html
Class HTMLReport
java.lang.Object
net.sourceforge.cobertura.reporting.html.HTMLReport
- public class HTMLReport
- extends java.lang.Object
Constructor Summary |
HTMLReport(CoverageReport coverage,
java.io.File outputDir,
java.io.File sourceDir)
Create a coverage report |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputDir
private java.io.File outputDir
sourceDir
private java.io.File sourceDir
coverage
private CoverageReport coverage
HTMLReport
public HTMLReport(CoverageReport coverage,
java.io.File outputDir,
java.io.File sourceDir)
throws java.lang.Exception
- Create a coverage report
removeNonexistantClasses
private void removeNonexistantClasses()
- Go through the classes in our coverage data and remove any class
for which we don't have source code. These classes are usually
RMI stubs or inner classes.
generatePackageList
private void generatePackageList()
throws java.io.IOException
- Throws:
java.io.IOException
generateClassLists
private void generateClassLists()
throws java.io.IOException
- Throws:
java.io.IOException
generateClassList
private void generateClassList(Package pkg)
throws java.io.IOException
- Throws:
java.io.IOException
generateOverviews
private void generateOverviews()
throws java.io.IOException
- Throws:
java.io.IOException
generateOverview
private void generateOverview(Package pkg)
throws java.io.IOException
- Throws:
java.io.IOException
generateSourceFiles
private void generateSourceFiles()
throws java.io.IOException
- Throws:
java.io.IOException
generateSourceFile
private void generateSourceFile(Clazz clazz)
throws java.io.IOException
- Throws:
java.io.IOException
generateHelpURL
private static java.lang.String generateHelpURL(java.lang.String text,
java.lang.String description)
generateCommonTableColumns
private static java.lang.String generateCommonTableColumns()
generateTableHeaderForClasses
private static java.lang.String generateTableHeaderForClasses()
generateNAPercent
private static java.lang.String generateNAPercent()
generateTableColumnsForNA
private static java.lang.String generateTableColumnsForNA(double ccn)
generateTableColumnsFromData
private static java.lang.String generateTableColumnsFromData(double lineCoverage,
double branchCoverage,
double ccn)
generateTableRowForTotal
private java.lang.String generateTableRowForTotal()
generateTableRowForPackage
private java.lang.String generateTableRowForPackage(Package pkg)
generateTableRowForClass
private java.lang.String generateTableRowForClass(Clazz clazz)
generatePercentResult
private static java.lang.String generatePercentResult(double percentValue)
getDoubleValue
private static java.lang.String getDoubleValue(double value)
getPercentValue
private static java.lang.String getPercentValue(double value)