public void run(IPerfOutput output) throws Exception {
   final IRuntime runtime = new LoggerRuntime();
   ClassReader reader = new ClassReader(TargetLoader.getClassData(target));
   final Instrumenter instr = new Instrumenter(runtime);
   instr.instrument(reader);
   output.writeByteResult("instrumented class", instr.instrument(reader).length, reader.b.length);
 }
Пример #2
0
 @Test
 public void testAnalyzeAll1() throws IOException {
   final int count = analyzer.analyzeAll(TargetLoader.getClassData(AnalyzerTest.class));
   assertEquals(1, count);
   assertEquals(Collections.singleton("org/jacoco/core/analysis/AnalyzerTest"), classes);
 }