Package org.jacoco.core.data

Examples of org.jacoco.core.data.ExecutionDataStore$Entry


    }
  }

  private void loadExecutionData() {
    sessionInfoStore = new SessionInfoStore();
    executionDataStore = new ExecutionDataStore();
    for (final Iterator<?> i = executiondataElement.iterator(); i.hasNext();) {
      final Resource resource = (Resource) i.next();
      InputStream in = null;
      try {
        in = new BufferedInputStream(resource.getInputStream());
View Full Code Here


    remoteReader.read();

    // Now the actual test starts:
    controller.writeExecutionData();

    final ExecutionDataStore execStore = new ExecutionDataStore();
    remoteReader.setExecutionDataVisitor(execStore);
    final SessionInfoStore infoStore = new SessionInfoStore();
    remoteReader.setSessionInfoVisitor(infoStore);
    remoteReader.read();

    assertEquals("Foo", execStore.get(0x12345678).getName());

    final List<SessionInfo> infos = infoStore.getInfos();
    assertEquals(1, infos.size());
    assertEquals("stubid", infos.get(0).getId());
View Full Code Here

  @Before
  public void setup() throws Exception {
    final ClassReader reader = new ClassReader(TargetLoader
        .getClassData(target));
    final ExecutionDataStore store = execute(reader);
    analyze(reader, store);
    source = Source.getSourceFor(target);
  }
View Full Code Here

    runtime.startup();
    final byte[] bytes = new Instrumenter(runtime).instrument(reader);
    final TargetLoader loader = new TargetLoader(target, bytes);
    final Object instance = loader.getTargetClass().newInstance();
    ((Runnable) instance).run();
    final ExecutionDataStore store = new ExecutionDataStore();
    runtime.collect(store, false);
    runtime.shutdown();
    return store;
  }
View Full Code Here

  private CoverageBuilder coverageBuilder;

  @Before
  public void setup() {
    executionData = new ExecutionDataStore();
    coverageBuilder = new CoverageBuilder(executionData);
  }
View Full Code Here

  /**
   * Creates a new runtime.
   */
  protected AbstractRuntime() {
    store = new ExecutionDataStore();
    access = new ExecutionDataAccess(store);
    sessionId = createRandomId();
  }
View Full Code Here

    }
  }

  private void loadExecutionData() {
    sessionInfoStore = new SessionInfoStore();
    executionDataStore = new ExecutionDataStore();
    for (final Iterator<?> i = executiondataElement.iterator(); i.hasNext();) {
      final Resource resource = (Resource) i.next();
      log(format("Loading execution data file %s", resource));
      InputStream in = null;
      try {
View Full Code Here

  }

  @Override
  protected Runnable getInstrumentedRunnable() 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);
View Full Code Here

  private Object access;

  @Before
  public void setup() {
    store = new ExecutionDataStore();
    access = new ExecutionDataAccess(store);
  }
View Full Code Here

  private void loadExecutionData() throws IOException {
    final FileInputStream fis = new FileInputStream(executionDataFile);
    final ExecutionDataReader executionDataReader = new ExecutionDataReader(
        fis);
    executionDataStore = new ExecutionDataStore();
    sessionInfoStore = new SessionInfoStore();

    executionDataReader.setExecutionDataVisitor(executionDataStore);
    executionDataReader.setSessionInfoVisitor(sessionInfoStore);
View Full Code Here

TOP

Related Classes of org.jacoco.core.data.ExecutionDataStore$Entry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.