use of org.jacoco.core.analysis.ICoverageVisitor in project jacoco by jacoco.
the class AnalysisTimeScenario method getInstrumentedCallable.
@Override
protected Callable<Void> getInstrumentedCallable() throws Exception {
final byte[] bytes = TargetLoader.getClassDataAsBytes(target);
final ExecutionDataStore executionData = new ExecutionDataStore();
ICoverageVisitor visitor = new ICoverageVisitor() {
public void visitCoverage(IClassCoverage coverage) {
}
};
final Analyzer analyzer = new Analyzer(executionData, visitor);
return new Callable<Void>() {
public Void call() throws Exception {
for (int i = 0; i < count; i++) {
analyzer.analyzeClass(bytes, target.getName());
}
return null;
}
};
}
Aggregations