Examples of IClassCoverage


Examples of org.jacoco.core.analysis.IClassCoverage

    Collection<ISourceFileCoverage> getSources() {
      return sources;
    }

    public void visit(IType type, String vmname) {
      final IClassCoverage coverage = nodes.getClassCoverage(vmname);
      if (coverage != null) {
        classes.add(coverage);
        modelcoverage.putType(type, coverage);
      }
    }
View Full Code Here

Examples of org.jacoco.core.analysis.IClassCoverage

    }

    public void visit(IClassFile classfile) throws JavaModelException {
      final String vmname = classfile.getType().getFullyQualifiedName()
          .replace('.', '/');
      final IClassCoverage coverage = nodes.getClassCoverage(vmname);
      if (coverage != null) {
        modelcoverage.putClassFile(classfile, coverage);
        // Add source file coverage manually in case of binary roots
        // as we will not see compilation units:
        final ISourceFileCoverage source = nodes.getSourceFileCoverage(
            coverage.getPackageName(), coverage.getSourceFileName());
        if (source != null) {
          sources.add(source);
        }
      }
    }
View Full Code Here

Examples of org.jacoco.core.analysis.IClassCoverage

    }
    return null;
  }

  private void resolveMethods(final IType type) {
    IClassCoverage classCoverage = (IClassCoverage) getCoverageFor(type);
    if (classCoverage == null) {
      return;
    }
    try {
      MethodLocator locator = new MethodLocator(type);
      for (IMethodCoverage methodCoverage : classCoverage.getMethods()) {
        final IMethod method = locator.findMethod(methodCoverage.getName(),
            methodCoverage.getDesc());
        if (method != null) {
          coveragemap.put(method, methodCoverage);
        } else {
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.