Examples of IBundleCoverage


Examples of org.jacoco.core.analysis.IBundleCoverage

    for (final File file : filesToAnalyze) {
      analyzer.analyzeAll(file);
    }

    final IBundleCoverage bundle = builder
        .getBundle(this.project.getName());
    logBundleInfo(bundle, builder.getNoMatchClasses());

    return bundle;
  }
View Full Code Here

Examples of org.jacoco.core.analysis.IBundleCoverage

    }
    executeCheck();
  }

  private void executeCheck() throws MojoExecutionException {
    final IBundleCoverage bundle = loadBundle();
    violations = false;

    final RulesChecker checker = new RulesChecker();
    final List<Rule> checkerrules = new ArrayList<Rule>();
    for (final RuleConfiguration r : rules) {
View Full Code Here

Examples of org.jacoco.core.analysis.IBundleCoverage

  void createReport(final IReportGroupVisitor visitor) throws IOException {
    final FileFilter fileFilter = new FileFilter(this.getIncludes(),
        this.getExcludes());
    final BundleCreator creator = new BundleCreator(this.getProject(),
        fileFilter, getLog());
    final IBundleCoverage bundle = creator.createBundle(executionDataStore);
    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

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