org.openbakery.coverage.model.Function.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 Function {
List sourceLines = [];
Function() {
}
String getName() {
String code = sourceLines.first().code.trim()
if (code.endsWith("{")) {
return code[0..-2].trim()
}
return code;
}
double getCoverage() {
return SourceLine.getCoverage(sourceLines)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy