org.openbakery.coverage.model.SourcePackage.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of CoverageReport Show documentation
Show all versions of CoverageReport Show documentation
CoverageReport convert the llvm profdata code coverage to text, HTML or XML
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