INNER CODE UNIT · Go

isIncluded

cweill/gotests · gotests.go:209

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
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…