Package org.jacoco.core.analysis

Examples of org.jacoco.core.analysis.CoverageNodeImpl


  public void testSessionInfo() throws Exception {
    final List<SessionInfo> infos = new ArrayList<SessionInfo>();
    infos.add(new SessionInfo("session-1", 12345, 67890));
    infos.add(new SessionInfo("session-2", 1, 2));
    infos.add(new SessionInfo("session-3", 1, 2));
    ICoverageNode node = new CoverageNodeImpl(ElementType.GROUP, "Sample",
        false);
    final Collection<ExecutionData> data = Collections.emptyList();
    formatter.createReportVisitor(node, infos, data).visitEnd(null);
    assertPathMatches("session-1", "/report/sessioninfo[1]/@id");
    assertPathMatches("12345", "/report/sessioninfo[1]/@start");
View Full Code Here


      }
    };
  }

  private CoverageNodeImpl createNode(final int total, final int covered) {
    return new CoverageNodeImpl(ElementType.GROUP, "Foo", false) {
      {
        this.lineCounter = CounterImpl.getInstance(total, covered);
      }
    };
  }
View Full Code Here

      }
    };
  }

  private CoverageNodeImpl createNode(final int total, final int covered) {
    return new CoverageNodeImpl(ElementType.GROUP, "Foo", false) {
      {
        this.lineCounter = CounterImpl.getInstance(total, covered);
      }
    };
  }
View Full Code Here

   *
   * @param name
   *            name for the coverage node created internally
   */
  protected AbstractGroupVisitor(final String name) {
    total = new CoverageNodeImpl(ElementType.GROUP, name);
  }
View Full Code Here

    assertEquals("E",
        support.findStr(doc, "/html/body/table/tbody/tr[5]/td[1]"));
  }

  private ITableItem createItem(final String name, final int count) {
    final ICoverageNode node = new CoverageNodeImpl(ElementType.GROUP,
        name, false) {
      {
        this.classCounter = CounterImpl.getInstance(count, false);
      }
    };
    return new ITableItem() {
      public String getLinkLabel() {
        return name;
      }

      public String getLink(ReportOutputFolder base) {
        return name + ".html";
      }

      public String getLinkStyle() {
        return Resources.getElementStyle(node.getElementType());
      }

      public ICoverageNode getNode() {
        return node;
      }
View Full Code Here

      }
    };
  }

  private ICoverageNode createTotal(final String name, final int count) {
    return new CoverageNodeImpl(ElementType.GROUP, name, false) {
      {
        this.classCounter = CounterImpl.getInstance(count, false);
      }
    };
  }
View Full Code Here

      }
    };
  }

  private CoverageNodeImpl createNode(final int total, final int covered) {
    return new CoverageNodeImpl(ElementType.GROUP, "Foo", false) {
      {
        this.lineCounter = CounterImpl.getInstance(total, covered);
      }
    };
  }
View Full Code Here

    packageCoverage = new PackageCoverageImpl("org/jacoco/example",
        Collections.singleton(classCoverage),
        Collections.singleton(sourceFileCoverage));
    bundleCoverage = new BundleCoverageImpl("bundle",
        Collections.singleton(packageCoverage));
    groupCoverage = new CoverageNodeImpl(ElementType.GROUP, "group");
  }
View Full Code Here

      return name + children;
    }
  }

  private CoverageNodeImpl createNode(String name) {
    return new CoverageNodeImpl(ElementType.GROUP, name, false);
  }
View Full Code Here

      return name + children;
    }
  }

  private CoverageNodeImpl createNode(String name) {
    return new CoverageNodeImpl(ElementType.GROUP, name);
  }
View Full Code Here

TOP

Related Classes of org.jacoco.core.analysis.CoverageNodeImpl

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.