Home | History | Annotate | Download | only in testing

Lines Matching refs:pattern

30 		pattern string
34 // If a regexp pattern is correct, all split regexps need to be correct
65 a := splitRegexp(tc.pattern)
67 t.Errorf("splitRegexp(%q) = %#v; want %#v", tc.pattern, a, tc.result)
70 // If there is any error in the pattern, one of the returned subpatterns
72 if _, err := regexp.Compile(tc.pattern); err != nil {
80 t.Errorf("%s: expected error in any of %q", tc.pattern, a)
88 pattern string
132 m := newMatcher(regexp.MatchString, tc.pattern, "-test.run")
139 t.Errorf("for pattern %q, fullName(parent=%q, sub=%q) = %q, ok %v partial %v; want ok %v partial %v",
140 tc.pattern, tc.parent, tc.sub, n, ok, partial, tc.ok, tc.partial)