Package org.jacoco.core.analysis

Examples of org.jacoco.core.analysis.MethodCoverage.addBlock()


        .visitChild(new CoverageNodeImpl(ElementType.PACKAGE,
            "org.jacoco.example", false));
    final IReportVisitor classHandler = packageHandler
        .visitChild(new CoverageNodeImpl(ElementType.CLASS, "Foo", true));
    MethodCoverage node = new MethodCoverage("doit", "()V", null);
    node.addBlock(5, new int[] { 15, 16, 17 }, false);
    classHandler.visitChild(node).visitEnd(null);
    classHandler.visitEnd(null);
    packageHandler.visitEnd(null);
    final Document doc = getDocument();
    assertEquals("doit",
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.