All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openbakery.coverage.model.SourcePackage.groovy Maven / Gradle / Ivy

There is a newer version: 0.9.4
Show newest version
package org.openbakery.coverage.model

/**
 * Created by René Pirringer
 */
class SourcePackage {

	String name
	List sourceFiles

	SourcePackage(String name, List sourceFiles) {
		this.name = name
		this.sourceFiles = sourceFiles
	}


	@Override
	public String toString() {
		return "SourcePackage{" +
						"name='" + name + '\'' +
						'}';
	}


	String getBrancheRate() { return "0.0" }

	String getLines() { SourceFile.getTotalLines(this.sourceFiles) }

	String getExecuted() { SourceFile.getLinesExecuted(this.sourceFiles) }

	String getCoverage() { SourceFile.getCoverage(this.sourceFiles) }

	String getMissing() { SourceFile.getLinesNotCovered(this.sourceFiles) }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy