- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for alternationMatch (0.16 sec)
-
src/testing/match.go
} // simpleMatch matches a test name if all of the pattern strings match in // sequence. type simpleMatch []string // alternationMatch matches a test name if one of the alternations match. type alternationMatch []filterMatch // TODO: fix test_main to avoid race and improve caching, also allowing to // eliminate this Mutex. var matchMutex sync.Mutex func allMatcher() *matcher {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 27 22:07:13 UTC 2023 - 7.7K bytes - Viewed (0) -
src/testing/match_test.go
n++ if n > 10 { return } } } } func TestSplitRegexp(t *T) { res := func(s ...string) filterMatch { return simpleMatch(s) } alt := func(m ...filterMatch) filterMatch { return alternationMatch(m) } testCases := []struct { pattern string result filterMatch }{ // Correct patterns // If a regexp pattern is correct, all split regexps need to be correct // as well. {"", res("")},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 16 14:48:54 UTC 2022 - 8K bytes - Viewed (0)