JaCoCoReportReader { public CoverageBuilder analyzeFiles(ExecutionDataStore executionDataStore, Collection<File> classFiles) { CoverageBuilder coverageBuilder = new CoverageBuilder(); if (useCurrentBinaryFormat) { Analyzer analyzer = new Analyzer(executionDataStore, coverageBuilder); for (File classFile : classFiles) { analyzeClassFile(analyzer, classFile); } } else { org.jacoco.previous.core.analysis.Analyzer analyzer = new org.jacoco.previous.core.analysis.Analyzer(executionDataStore, coverageBuilder); for (File classFile : classFiles) { analyzeClassFile(analyzer, classFile); } } return coverageBuilder; } JaCoCoReportReader(@Nullable File jacocoExecutionData); JaCoCoReportReader readJacocoReport(IExecutionDataVisitor executionDataVisitor, ISessionInfoVisitor sessionInfoStore); boolean useCurrentBinaryFormat(); CoverageBuilder analyzeFiles(ExecutionDataStore executionDataStore, Collection<File> classFiles);  }
@Test public void not_existing_class_files_should_not_be_analyzed_for_current() { File report = TestUtils.getResource("/org/sonar/plugins/groovy/jacoco/JaCoCo_incompatible_merge/jacoco-0.7.5.exec"); Collection<File> classFile = Arrays.asList(dummy); new JaCoCoReportReader(report).analyzeFiles(null, classFile); }
@Test public void not_existing_class_files_should_not_be_analyzed_for_previous() { File report = TestUtils.getResource("/org/sonar/plugins/groovy/jacoco/JaCoCo_incompatible_merge/jacoco-0.7.4.exec"); Collection<File> classFile = Arrays.asList(dummy); new JaCoCoReportReader(report).analyzeFiles(null, classFile); }