Class SourceFileInfoBuilder
java.lang.Object
org.ek9lang.cli.coverage.SourceFileInfoBuilder
Builds SourceFileInfo objects from coverage data.
Single responsibility: converting coverage maps to result objects.
-
Constructor Summary
ConstructorsConstructorDescriptionSourceFileInfoBuilder(ModuleNameExtractor moduleNameExtractor, List<String> allSourceFiles) Create a builder that can extract module names and knows about all source files. -
Method Summary
-
Constructor Details
-
SourceFileInfoBuilder
SourceFileInfoBuilder(ModuleNameExtractor moduleNameExtractor, List<String> allSourceFiles) Create a builder that can extract module names and knows about all source files.- Parameters:
moduleNameExtractor- For extracting module names from files without coverageallSourceFiles- List of all .ek9 files found in the source directory
-
-
Method Details
-
build
Map<String, SourceFileInfo> build(Map<String, Map<Integer, LineCoverage>> fileCoverageMap, Map<String, String> fileModuleMap) Build the final map of source file info from coverage data.- Parameters:
fileCoverageMap- Map of file paths to their line coverage datafileModuleMap- Map of file paths to their module names- Returns:
- Map of file paths to complete SourceFileInfo objects
-