Package org.jacoco.core.analysis

Examples of org.jacoco.core.analysis.CoverageNodeImpl


      public Locale getLocale() {
        return Locale.ENGLISH;
      }
    };
    node = new CoverageNodeImpl(ElementType.GROUP, "Test");
    page = new TestNodePage(node);
  }
View Full Code Here


    output.assertAllClosed();
  }

  @Test
  public void testGetNode() throws IOException {
    node.increment(new CoverageNodeImpl(ElementType.GROUP, "Foo") {
      {
        branchCounter = CounterImpl.getInstance(15, 8);
      }
    });
    page.visitEnd(null);
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

      public String getOutputEncoding() {
        return "UTF-8";
      }
    };
    ReportPage parent = new TestReportPage(new CoverageNodeImpl(
        ElementType.SESSION, "Session", false), null);
    node = new CoverageNodeImpl(ElementType.GROUP, "Test", false);
    page = new TestReportPage(node, parent);
  }
View Full Code Here

    assertEquals("C", support.findStr(doc,
        "/html/body/table/tbody/tr[3]/td/text()"));
  }

  private ICoverageTableItem createItem(final String name, final int count) {
    final ICoverageNode node = new CoverageNodeImpl(ElementType.GROUP,
        name, false) {
      {
        this.classCounter = CounterImpl.getInstance(count, false);
      }
    };
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

  }

  @Test
  public void testFooter() throws Exception {
    column.footer(tr,
        new CoverageNodeImpl(ElementType.GROUP, "Foo", false),
        resources, root);
    doc.close();
    final Document doc = support.parse(output.getFile("Test.html"));
    assertEquals("Total", support.findStr(doc,
        "/html/body/table/tr/td/text()"));
View Full Code Here

    assertEquals("el_group", support.findStr(doc,
        "/html/body/table/tr/td/a/@class"));
  }

  private ICoverageTableItem createItem(final String name, final String link) {
    final ICoverageNode node = new CoverageNodeImpl(ElementType.GROUP,
        name, false);
    return new ICoverageTableItem() {
      public String getLabel() {
        return name;
      }
View Full Code Here

  }

  @Test
  public void testFooter() throws Exception {
    column.footer(td,
        new CoverageNodeImpl(ElementType.GROUP, "Foo", false),
        resources, root);
    doc.close();
    final Document doc = support.parse(output.getFile("Test.html"));
    assertEquals("Total",
        support.findStr(doc, "/html/body/table/tr/td/text()"));
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.