Package org.egothor.methodatlas.coverage
Class CoverageFacade
java.lang.Object
org.egothor.methodatlas.coverage.CoverageFacade
Single public entry point used by
MethodAtlasApp to drive
-emit-coverage.
The package's data records, collector, writer and mapping loader are all package-private so they remain implementation details. The facade exposes only the operations the CLI needs:
- load a mapping file (returning the framework label and a sink that must be threaded through the orchestrator);
- after the scan, ask the same handle to write the report.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classOpaque handle returned byprepare(Path, double). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault filename used when-coverage-fileis not supplied. -
Method Summary
Modifier and TypeMethodDescriptionstatic CoverageFacade.HandleLoadsmappingFileand prepares a coverage collector wrapped inside aCoverageFacade.Handlethat the CLI can later pass to the scan orchestrator and the writer.
-
Field Details
-
DEFAULT_COVERAGE_FILENAME
Default filename used when-coverage-fileis not supplied.- See Also:
-
-
Method Details
-
prepare
public static CoverageFacade.Handle prepare(Path mappingFile, double minConfidence) throws IOException LoadsmappingFileand prepares a coverage collector wrapped inside aCoverageFacade.Handlethat the CLI can later pass to the scan orchestrator and the writer.- Parameters:
mappingFile- path to the user-authored mapping JSONminConfidence- AI minimum-confidence threshold from the CLI- Returns:
- handle ready for use by the orchestrator and writer
- Throws:
IOException- if the mapping file cannot be readIllegalArgumentException- if the mapping file is invalid
-