Class SourceLinesHtml
java.lang.Object
org.ek9lang.cli.coverage.SourceLinesHtml
Generates HTML for line-by-line source code view with coverage highlighting.
Each line shows line number, coverage status, syntax-highlighted code, and optional badges.
Delegates to focused helpers:
SignatureCoverageResolver- resolves coverage for signature linesBranchBadgeGenerator- generates branch type badgesComplexityBadgeHtml- generates complexity metrics badges
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SourceLinesHtml
-
-
Method Details
-
generate
public String generate(List<String> lines, Map<Integer, LineCoverage> lineCoverage, String sourceFilePath) Generate HTML for all source lines with coverage highlighting.- Parameters:
lines- The source code lineslineCoverage- Map of line number to coverage infosourceFilePath- The path to the source file for function lookup- Returns:
- HTML string containing all source lines
-