Package org.jacoco.core.data

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


  private CoverageBuilder coverageBuilder;

  @Before
  public void setup() {
    executionData = new ExecutionDataStore();
    coverageBuilder = new CoverageBuilder(executionData);
  }
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

  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

    target = (Target) loader.getTargetClass().newInstance();
  }

  private ICounter analyze() {
    final CoverageBuilder builder = new CoverageBuilder();
    final ExecutionDataStore store = new ExecutionDataStore();
    runtime.collect(store, null, false);
    final Analyzer analyzer = new Analyzer(store, builder);
    analyzer.analyzeClass(reader);
    final Collection<IClassCoverage> classes = builder.getClasses();
    assertEquals(1, classes.size(), 0.0);
View Full Code Here

    return element;
  }

  @Override
  public void execute() throws BuildException {
    final ExecutionDataStore executionData = loadExecutionData();
    final IReportFormatter formatter = createFormatter();
    try {
      createReport(structure, formatter, executionData);
    } catch (final IOException e) {
      throw new BuildException("Error while creating report.", e);
View Full Code Here

      throw new BuildException("Error while creating report.", e);
    }
  }

  private ExecutionDataStore loadExecutionData() {
    final ExecutionDataStore data = 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

  private Map<Long, boolean[]> map;

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

  private Object access;

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

{
   public void storeCoverageData(@Observes CoverageDataCommand coverageDataCommandEvent)
   {
      try
      {
         ExecutionDataStore dataStore = new ExecutionDataStore();
         SessionInfoStore sessionStore = new SessionInfoStore();

         read(new ByteArrayInputStream(coverageDataCommandEvent.getCoverageDate()), dataStore, sessionStore);

         copyToAgentExecutionStore(dataStore);
View Full Code Here

{
   public void storeCoverageData(@Observes CoverageDataCommand coverageDataCommandEvent)
   {
      try
      {
         ExecutionDataStore dataStore = new ExecutionDataStore();
         SessionInfoStore sessionStore = new SessionInfoStore();

         read(new ByteArrayInputStream(coverageDataCommandEvent.getCoverageDate()), dataStore, sessionStore);

         copyToAgentExecutionStore(dataStore);
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.