From a9a225ba26b5b4e90582180f54f5449fcd0a490a Mon Sep 17 00:00:00 2001 From: Dan Kegel Date: Sun, 13 Feb 2022 09:55:07 -0800 Subject: [PATCH] testing: nudge type TB closer to upstream; should be a no-op change. --- src/testing/testing.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/testing/testing.go b/src/testing/testing.go index 47679ebd..24363235 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -103,6 +103,7 @@ func fmtDuration(d time.Duration) string { // TB is the interface common to T and B. type TB interface { + Cleanup(func()) Error(args ...interface{}) Errorf(format string, args ...interface{}) Fail() @@ -110,6 +111,7 @@ type TB interface { Failed() bool Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) + Helper() Log(args ...interface{}) Logf(format string, args ...interface{}) Name() string @@ -117,8 +119,7 @@ type TB interface { SkipNow() Skipf(format string, args ...interface{}) Skipped() bool - Helper() - Parallel() + TempDir() string } var _ TB = (*T)(nil) @@ -345,7 +346,7 @@ func (c *common) runCleanup() { } // Parallel is not implemented, it is only provided for compatibility. -func (c *common) Parallel() { +func (t *T) Parallel() { // Unimplemented. }