Package org.jacoco.core.analysis

Examples of org.jacoco.core.analysis.ClassCoverage


  public IReportVisitor visitChild(final ICoverageNode node)
      throws IOException {
    final ElementType type = node.getElementType();
    switch (type) {
    case CLASS:
      final ClassCoverage classNode = (ClassCoverage) node;
      writer.writeRow(groupName, packageName, classNode);
      return IReportVisitor.NOP;
    case SOURCEFILE:
      return IReportVisitor.NOP;
    }
View Full Code Here


  @Test
  public void testReportWithNoGroupsOrBundles() throws Exception {

    MethodCoverage methodCoverage = new MethodCoverage("foo", "V", "V");
    ClassCoverage classCoverage = new ClassCoverage("org/jacoco/test/Test",
        "Test.java", Arrays.asList(methodCoverage));
    PackageCoverage packageCoverage = new PackageCoverage(
        "org/jacoco/test", Arrays.asList(classCoverage), Collections
            .<SourceFileCoverage> emptyList());
    BundleCoverage bundleCoverage = new BundleCoverage("test", Arrays
View Full Code Here

  @Test
  public void testReportWithNoGroupsOrBundles() throws Exception {

    MethodCoverage methodCoverage = new MethodCoverage("foo", "V", "V");
    ClassCoverage classCoverage = new ClassCoverage("org/jacoco/test/Test",
        null, "java/lang/Object", new String[0], "Test.java", Arrays
            .asList(methodCoverage));
    PackageCoverage packageCoverage = new PackageCoverage(
        "org/jacoco/test", Arrays.asList(classCoverage), Collections
            .<SourceFileCoverage> emptyList());
View Full Code Here

  public IReportVisitor visitChild(final ICoverageNode node)
      throws IOException {
    final ElementType type = node.getElementType();
    switch (type) {
    case CLASS:
      final ClassCoverage classNode = (ClassCoverage) node;
      writer.writeRow(groupName, packageName, classNode);
      return IReportVisitor.NOP;
    case SOURCEFILE:
      return IReportVisitor.NOP;
    }
View Full Code Here

  public IReportVisitor visitChild(final ICoverageNode node)
      throws IOException {
    final ElementType type = node.getElementType();
    switch (type) {
    case CLASS:
      final ClassCoverage classNode = (ClassCoverage) node;
      writer.writeRow(groupName, packageName, classNode);
      return IReportVisitor.NOP;
    case SOURCEFILE:
      return IReportVisitor.NOP;
    }
View Full Code Here

TOP

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

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.