Package org.jacoco.core.analysis

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


    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

          .visitGroup(group.name);
      for (final GroupElement child : group.children) {
        createReport(groupVisitor, child);
      }
    } else {
      final IBundleCoverage bundle = createBundle(group);
      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

    }
  }

  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

          .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

    // 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

    }
  }

  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

    }
  }

  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

          .visitGroup(group.name);
      for (final GroupElement child : group.children) {
        createReport(groupVisitor, child);
      }
    } else {
      final IBundleCoverage bundle = createBundle(group);
      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

        final InputStream in = resource.getInputStream();
        analyzer.analyzeAll(in, resource.getName());
        in.close();
      }
    }
    final IBundleCoverage bundle = builder.getBundle(group.name);
    logBundleInfo(bundle, builder.getNoMatchClasses());
    return bundle;
  }
View Full Code Here

TOP

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

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.