Home | History | Annotate | Download | only in testing

Lines Matching refs:tc

64 	for _, tc := range testCases {
65 a := splitRegexp(tc.pattern)
66 if !reflect.DeepEqual(a, tc.result) {
67 t.Errorf("splitRegexp(%q) = %#v; want %#v", tc.pattern, a, tc.result)
72 if _, err := regexp.Compile(tc.pattern); err != nil {
80 t.Errorf("%s: expected error in any of %q", tc.pattern, a)
131 for _, tc := range testCases {
132 m := newMatcher(regexp.MatchString, tc.pattern, "-test.run")
134 parent := &common{name: tc.parent}
135 if tc.parent != "" {
138 if n, ok, partial := m.fullName(parent, tc.sub); ok != tc.ok || partial != tc.partial {
140 tc.pattern, tc.parent, tc.sub, n, ok, partial, tc.ok, tc.partial)
181 for i, tc := range testCases {
182 if got, _, _ := m.fullName(parent, tc.name); got != tc.want {
183 t.Errorf("%d:%s: got %q; want %q", i, tc.name, got, tc.want)