generateHelpURL
private static String generateHelpURL(String text,
String description)
generateOverview
private void generateOverview(PackageData packageData)
throws IOException
generatePercentResult
private static String generatePercentResult(int dividend,
int divisor)
This is crazy complicated, and took me a while to figure out,
but it works. It creates a dandy little percentage meter, from
0 to 100.
dividend
- The number of covered lines or branches.divisor
- The number of valid lines or branches.
generateSourceFile
private void generateSourceFile(SourceFileData sourceFileData)
throws IOException
generateTableColumnsFromData
private static String generateTableColumnsFromData(CoverageData coverageData,
double ccn)
Return a string containing three HTML table cells. The first
cell contains a graph showing the line coverage, the second
cell contains a graph showing the branch coverage, and the
third cell contains the code complexity.
ccn
- The code complexity to display. This should be greater
than 1.
- A string containing the HTML for three table cells.
generateTableHeader
private static String generateTableHeader(String title,
boolean showColumnForNumberOfClasses)