Class CoverageLinks

java.lang.Object
org.ek9lang.cli.coverage.CoverageLinks

public final class CoverageLinks extends Object
Centralized utility for building coverage report links. Ensures consistent URL patterns across all HTML generators.
  • Constructor Details

  • Method Details

    • moduleHref

      public String moduleHref(String moduleName)
      Build a link to a module detail page from the index page.
      Parameters:
      moduleName - the module name
      Returns:
      the href for the module link
    • moduleLinkStart

      public String moduleLinkStart(String moduleName)
      Build an anchor tag opening for a module link.
      Parameters:
      moduleName - the module name
      Returns:
      the anchor opening tag
    • fileLinkFromModule

      public FileLink fileLinkFromModule(String filePath, int line)
      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 path
      line - the line number to link to
      Returns:
      FileLink with anchor parts
    • fileLinkFromIndex

      public FileLink fileLinkFromIndex(String filePath, int line)
      Build a link to a source file from the index page. Uses direct files/ path since index is at root level.
      Parameters:
      filePath - the source file path
      line - the line number to link to
      Returns:
      FileLink with anchor parts
    • noLink

      public FileLink noLink()
      Build a FileLink with no actual link (for files not in the report).
      Returns:
      empty FileLink