Examples of IBundleCoverage


Examples of org.jacoco.core.analysis.IBundleCoverage

    // the coverage model. The process would be similar if your classes
    // were in a jar file. Typically you would create a bundle for each
    // class folder and each jar you want in your report. If you have
    // more than one bundle you will need to add a grouping node to your
    // report
    final IBundleCoverage bundleCoverage = analyzeStructure();

    createReport(bundleCoverage);

  }
View Full Code Here

Examples of org.jacoco.core.analysis.IBundleCoverage

          .visitGroup(group.name);
      for (final GroupElement child : group.children) {
        createReport(groupVisitor, child);
      }
    } else {
      final IBundleCoverage bundle = createBundle(group);
      final SourceFileCollection locator = new SourceFileCollection(
          group.sourcefiles);
      if (!locator.isEmpty()) {
        checkForMissingDebugInformation(bundle);
      }
View Full Code Here

Examples of org.jacoco.core.analysis.IBundleCoverage

          .visitGroup(group.name);
      for (final GroupElement child : group.children) {
        createReport(groupVisitor, child);
      }
    } else {
      final IBundleCoverage bundle = createBundle(group);
      log(format("Writing group \"%s\" with %s classes",
          bundle.getName(),
          Integer.valueOf(bundle.getClassCounter().getTotalCount())));
      final SourceFilesElement sourcefiles = group.sourcefiles;
      final AntResourcesLocator locator = new AntResourcesLocator(
          sourcefiles.encoding, sourcefiles.tabWidth);
      locator.addAll(sourcefiles.iterator());
      if (!locator.isEmpty()) {
View Full Code Here

Examples of org.jacoco.core.analysis.IBundleCoverage

    // the coverage model. The process would be similar if your classes
    // were in a jar file. Typically you would create a bundle for each
    // class folder and each jar you want in your report. If you have
    // more than one bundle you will need to add a grouping node to your
    // report
    final IBundleCoverage bundleCoverage = analyzeStructure();

    createReport(bundleCoverage);

  }
View Full Code Here

Examples of org.jacoco.core.analysis.IBundleCoverage

      PackageFragementRootAnalyzer analyzer, IProgressMonitor monitor)
      throws CoreException {
    final TypeVisitor visitor = new TypeVisitor(analyzer.analyze(root));
    new TypeTraverser(root).process(visitor, monitor);

    final IBundleCoverage bundle = new BundleCoverageImpl(getName(root),
        visitor.getClasses(), visitor.getSources());
    modelcoverage.putFragmentRoot(root, bundle);
    putPackages(bundle.getPackages(), root);
  }
View Full Code Here

Examples of org.jacoco.core.analysis.IBundleCoverage

        .getDescription());
    for (IJavaProject project : modelCoverage.getProjects()) {
      final IReportGroupVisitor projectgroup = modelgroup.visitGroup(project
          .getElementName());
      for (IPackageFragmentRoot root : project.getPackageFragmentRoots()) {
        final IBundleCoverage coverage = (IBundleCoverage) modelCoverage
            .getCoverageFor(root);
        if (coverage != null) {
          projectgroup.visitBundle(coverage, createSourceFileLocator(root));
          monitor.worked(1);
        }
View Full Code Here

Examples of org.jacoco.core.analysis.IBundleCoverage

        .getDescription());
    for (IJavaProject project : modelCoverage.getProjects()) {
      final IReportGroupVisitor projectgroup = modelgroup.visitGroup(project
          .getElementName());
      for (IPackageFragmentRoot root : project.getPackageFragmentRoots()) {
        final IBundleCoverage coverage = (IBundleCoverage) modelCoverage
            .getCoverageFor(root);
        if (coverage != null) {
          projectgroup.visitBundle(coverage, createSourceFileLocator(root));
          monitor.worked(1);
        }
View Full Code Here

Examples of org.jacoco.core.analysis.IBundleCoverage

    if (name.length() == 0) {
      // for project roots take project name:
      name = root.getParent().getElementName();
    }

    IBundleCoverage bundle = new BundleCoverageImpl(name, visitor.getClasses(),
        visitor.getSources());
    modelcoverage.putFragmentRoot(root, bundle);
    putPackages(bundle.getPackages(), root);
  }
View Full Code Here

Examples of org.jacoco.core.analysis.IBundleCoverage

    }
  }

  private void createReport(final IReportGroupVisitor visitor)
      throws IOException {
    final IBundleCoverage bundle = createBundle();
    final SourceFileCollection locator = new SourceFileCollection(
        getCompileSourceRoots(), sourceEncoding);
    checkForMissingDebugInformation(bundle);
    visitor.visitBundle(bundle, locator);
  }
View Full Code Here

Examples of org.jacoco.core.analysis.IBundleCoverage

    // the coverage model. The process would be similar if your classes
    // were in a jar file. Typically you would create a bundle for each
    // class folder and each jar you want in your report. If you have
    // more than one bundle you will need to add a grouping node to your
    // report
    final IBundleCoverage bundleCoverage = analyzeStructure();

    createReport(bundleCoverage);

  }
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.