Beispiel #1
0
func hasBlackboxTests() bool {
	return util.FindOccurrencesInTree(sourcePath, `"testing\/quick"`, "*_test.go") > 0
}
Beispiel #2
0
func hasBuildPackage() bool {
	return util.FindOccurrencesInTree(sourcePath, `package\smain`, "*.go") > 0
}
Beispiel #3
0
func hasBenches() bool {
	return util.FindOccurrencesInTree(sourcePath, `func\sBenchmark\w+\(`, "*_test.go") > 0
}