示例#1
0
文件: gotests.go 项目: cweill/gotests
func isExcluded(f *models.Function, excl *regexp.Regexp) bool {
	return excl != nil && (excl.MatchString(f.Name) || excl.MatchString(f.FullName()))
}
示例#2
0
文件: gotests.go 项目: cweill/gotests
func isIncluded(f *models.Function, only *regexp.Regexp) bool {
	return only == nil || only.MatchString(f.Name) || only.MatchString(f.FullName())
}
示例#3
0
文件: gotests.go 项目: cweill/gotests
func isTestFunction(f *models.Function, testFuncs []string) bool {
	return len(testFuncs) > 0 && contains(testFuncs, f.TestName())
}