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

org.openbakery.coverage.model.Function.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 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