Class CoverageTextPrinter
java.lang.Object
org.ek9lang.cli.coverage.CoverageTextPrinter
Prints covered and uncovered items (methods, branches, statements) to a text stream.
Used by Detailed and Verbose coverage formatters for terminal output.
Groups branches by source location and statements by file for concise output. Consecutive line numbers are shown as ranges (e.g., 3-5).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprintCoveredBranches(PrintStream out, List<org.ek9.lang.CoverageRuntime.CoveredBranch> branches) Print covered branches list with check icon, grouped by location.voidprintCoveredMethods(PrintStream out, List<org.ek9.lang.CoverageRuntime.CoveredMethod> methods) Print covered methods list with check icon.voidprintCoveredStatements(PrintStream out, List<org.ek9.lang.CoverageRuntime.CoveredStatement> statements) Print covered statements list with check icon, grouped by location.voidprintUncoveredBranches(PrintStream out, List<org.ek9.lang.CoverageRuntime.UncoveredBranch> branches) Print uncovered branches list with warning icon, grouped by location.voidprintUncoveredMethods(PrintStream out, List<org.ek9.lang.CoverageRuntime.UncoveredMethod> methods) Print uncovered methods list with warning icon.voidprintUncoveredStatements(PrintStream out, List<org.ek9.lang.CoverageRuntime.UncoveredStatement> statements) Print uncovered statements list with warning icon, grouped by location.
-
Constructor Details
-
CoverageTextPrinter
public CoverageTextPrinter()
-
-
Method Details
-
printUncoveredMethods
public void printUncoveredMethods(PrintStream out, List<org.ek9.lang.CoverageRuntime.UncoveredMethod> methods) Print uncovered methods list with warning icon. -
printCoveredMethods
public void printCoveredMethods(PrintStream out, List<org.ek9.lang.CoverageRuntime.CoveredMethod> methods) Print covered methods list with check icon. -
printUncoveredBranches
public void printUncoveredBranches(PrintStream out, List<org.ek9.lang.CoverageRuntime.UncoveredBranch> branches) Print uncovered branches list with warning icon, grouped by location. -
printCoveredBranches
public void printCoveredBranches(PrintStream out, List<org.ek9.lang.CoverageRuntime.CoveredBranch> branches) Print covered branches list with check icon, grouped by location. -
printUncoveredStatements
public void printUncoveredStatements(PrintStream out, List<org.ek9.lang.CoverageRuntime.UncoveredStatement> statements) Print uncovered statements list with warning icon, grouped by location. -
printCoveredStatements
public void printCoveredStatements(PrintStream out, List<org.ek9.lang.CoverageRuntime.CoveredStatement> statements) Print covered statements list with check icon, grouped by location.
-