INNER CODE UNIT · Go
isUnexported
cweill/gotests · gotests.go:205
func isUnexported(f *models.Function, exp bool) bool {
return exp && !f.IsExported
}
func isIncluded(f *models.Function, only *regexp.Regexp) bool {
return only == nil || only.MatchString(f.Name) || only.MatchString(f.FullName())
}
func contains(ss []string, s string) bool {
if i := sort.SearchStrings(ss, s); i < len(ss) && ss[i] == s {
return true
}
return false
}