Lines Matching refs:tc
73 for i, tc := range testCases {
76 maxParallel: tc.max,
78 for j, call := range tc.run {
340 for _, tc := range testCases {
341 ctx := newTestContext(tc.maxPar, newMatcher(regexp.MatchString, "", ""))
348 chatty: tc.chatty,
352 ok := root.Run(tc.desc, tc.f)
355 if ok != tc.ok {
356 t.Errorf("%s:ok: got %v; want %v", tc.desc, ok, tc.ok)
359 t.Errorf("%s:root failed: got %v; want %v", tc.desc, !ok, root.Failed())
362 t.Errorf("%s:running and waiting non-zero: got %d and %d", tc.desc, ctx.running, ctx.numWaiting)
365 want := strings.TrimSpace(tc.output)
368 t.Errorf("%s:output:\ngot:\n%s\nwant:\n%s", tc.desc, got, want)
485 for _, tc := range testCases {
495 chatty: tc.chatty,
497 benchFunc: func(b *B) { ok = b.Run("test", tc.f) }, // Use Run to catch failure.
501 if ok != !tc.failed {
502 t.Errorf("%s:ok: got %v; want %v", tc.desc, ok, !tc.failed)
505 t.Errorf("%s:root failed: got %v; want %v", tc.desc, !ok, root.Failed())
509 t.Errorf("%s: N for parent benchmark was %d; want 1", tc.desc, root.result.N)
512 want := strings.TrimSpace(tc.output)
515 t.Errorf("%s:output:\ngot:\n%s\nwant:\n%s", tc.desc, got, want)