Package net.sourceforge.cobertura.coveragedata

Examples of net.sourceforge.cobertura.coveragedata.PackageData


        computeSamePackageFromSums(); // TODO flushes cache too many times.
    }
   
    void buildPackageDataHelpers(Map<String, ProjectDataHolder> packageToCoverage) {
        for (Object o : data.getPackages()) {
            PackageData pd = (PackageData) o;
            ProjectDataHolder samePackageData = packageToCoverage.get(pd.getName());
            childHolders.put( pd.getName(), samePackageData );
            try {
                PackageDataPair pdp = buildChild( pd.getName() );
                // TODO do fudgeClinit and fromSums here perhaps.
                addChildRef(pdp);
            } catch (RuntimeException e) {
                throw new RuntimeException("Could not create PackageDataPair for "
                        + pd.getName(), e);
            }
        }
    }
View Full Code Here


        }
    }
   
    PackageDataPair buildChild( String pkg ) {
        ProjectDataHolder samePkgProjectHolder = childHolders.get( pkg );
        PackageData pkgData = (PackageData) data.getChild( pkg );
        PackageData samePkgPkgData = null;
        if ( samePkgProjectHolder != null ) {
            samePkgPkgData = (PackageData) samePkgProjectHolder.getData().getChild( pkg ); // may reread file
        }
        return getFactory().makePackageDataPair( pkgData, samePkgPkgData, this);
    }
View Full Code Here

                            SourceFileData sfd = (SourceFileData) x.getData();
                            complexity = complexityCalc
                                    .getCCNForSourceFile(sfd);
                        }
                        if (x instanceof PackageDataPair) {
                            PackageData pd = (PackageData) x.getData();
                            complexity = complexityCalc.getCCNForPackage(pd);
                        }
                        if (x instanceof ProjectDataPair) {
                            ProjectData pjd = (ProjectData) x.getData();
                            complexity = complexityCalc.getCCNForProject(pjd);
View Full Code Here

        printProject( projectData, percentage, integer );

        Iterator it = projectData.getPackages().iterator();
        while ( it.hasNext() )
        {
            PackageData packageData = (PackageData) it.next();
            printPackage( percentage, integer, packageData );
        }

        println( "</coverage>" );
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.cobertura.coveragedata.PackageData

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.