Class CoverageLinks
java.lang.Object
org.ek9lang.cli.coverage.CoverageLinks
Centralized utility for building coverage report links.
Ensures consistent URL patterns across all HTML generators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfileLinkFromIndex(String filePath, int line) Build a link to a source file from the index page.fileLinkFromModule(String filePath, int line) Build a link to a source file from a module page.moduleHref(String moduleName) Build a link to a module detail page from the index page.moduleLinkStart(String moduleName) Build an anchor tag opening for a module link.noLink()Build a FileLink with no actual link (for files not in the report).
-
Constructor Details
-
CoverageLinks
-
-
Method Details
-
moduleHref
-
moduleLinkStart
-
fileLinkFromModule
Build a link to a source file from a module page. Uses relative path ../files/ since module pages are in modules/ subdirectory.- Parameters:
filePath- the source file pathline- the line number to link to- Returns:
- FileLink with anchor parts
-
fileLinkFromIndex
-
noLink
Build a FileLink with no actual link (for files not in the report).- Returns:
- empty FileLink
-