Class CoverageFacade.Handle

java.lang.Object
org.egothor.methodatlas.coverage.CoverageFacade.Handle
Enclosing class:
CoverageFacade

public static final class CoverageFacade.Handle extends Object
Opaque handle returned by CoverageFacade.prepare(Path, double). Carries the collector through the scan and yields the report when the scan is done.
  • Method Details

    • asSink

      public org.egothor.methodatlas.emit.TestMethodSink asSink()
      Returns the TestMethodSink that the orchestrator must receive every per-method record on.
      Returns:
      collector as a sink
    • write

      public void write(String toolVersion, Path outputFile) throws IOException
      Builds the report and writes it to outputFile.
      Parameters:
      toolVersion - resolved tool version string
      outputFile - destination path
      Throws:
      IOException - if the file cannot be written