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