INNER CODE UNIT · Go
isInvalid
cweill/gotests · gotests.go:190
func isInvalid(f *models.Function) bool {
if f.Name == "init" && f.IsNaked() {
return true
}
return false
}
func isTestFunction(f *models.Function, testFuncs []string) bool {
return len(testFuncs) > 0 && contains(testFuncs, f.TestName())
}
func isExcluded(f *models.Function, excl *regexp.Regexp) bool {
return excl != nil && (excl.MatchString(f.Name) || excl.MatchString(f.FullName()))
}
func isUnexported(f *models.Function, exp bool) bool {
return exp && !f.IsExported
}