Package org.jacoco.core.analysis

Examples of org.jacoco.core.analysis.IMethodCoverage


      return new XMLReportNodeHandler(element.element("package"), node);
    case CLASS:
      return new XMLReportNodeHandler(element.element("class"), node);
    case METHOD:
      final XMLElement methodChild = element.element("method");
      final IMethodCoverage methodNode = (IMethodCoverage) node;
      methodChild.attr("desc", methodNode.getDesc());
      final int line = methodNode.getFirstLine();
      if (line != -1) {
        methodChild.attr("line", line);
      }
      return new XMLReportNodeHandler(methodChild, node);
    case SOURCEFILE:
View Full Code Here


    return new MethodAnalyzer(stringPool.get(name), stringPool.get(desc),
        stringPool.get(signature), probes) {
      @Override
      public void visitEnd() {
        super.visitEnd();
        final IMethodCoverage methodCoverage = getCoverage();
        if (methodCoverage.getInstructionCounter().getTotalCount() > 0) {
          // Only consider methods that actually contain code
          coverage.addMethod(methodCoverage);
        }
      }
    };
View Full Code Here

    return new MethodAnalyzer(stringPool.get(name), stringPool.get(desc),
        stringPool.get(signature), executionData) {
      @Override
      public void visitEnd() {
        super.visitEnd();
        final IMethodCoverage methodCoverage = getCoverage();
        if (methodCoverage.getInstructionCounter().getTotalCount() > 0) {
          // Only consider methods that actually contain code
          coverage.addMethod(methodCoverage);
        }
      }
    };
View Full Code Here

    return new MethodAnalyzer(stringPool.get(name), stringPool.get(desc),
        stringPool.get(signature), executionData) {
      @Override
      public void visitEnd() {
        super.visitEnd();
        final IMethodCoverage methodCoverage = getCoverage();
        if (methodCoverage.getInstructionCounter().getTotalCount() > 0) {
          // Only consider methods that actually contain code
          coverage.addMethod(methodCoverage);
        }
      }
    };
View Full Code Here

    return new MethodAnalyzer(stringPool.get(name), stringPool.get(desc),
        stringPool.get(signature), executionData) {
      @Override
      public void visitEnd() {
        super.visitEnd();
        final IMethodCoverage methodCoverage = getCoverage();
        if (methodCoverage.getInstructionCounter().getTotalCount() > 0) {
          // Only consider methods that actually contain code
          coverage.addMethod(methodCoverage);
        }
      }
    };
View Full Code Here

    return new MethodAnalyzer(stringPool.get(name), stringPool.get(desc),
        stringPool.get(signature), probes) {
      @Override
      public void visitEnd() {
        super.visitEnd();
        final IMethodCoverage methodCoverage = getCoverage();
        if (methodCoverage.getInstructionCounter().getTotalCount() > 0) {
          // Only consider methods that actually contain code
          coverage.addMethod(methodCoverage);
        }
      }
    };
View Full Code Here

TOP

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

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.