コード例 #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())
}