aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Poliwczak <mpoliwczak34@gmail.com>2025-05-31 16:41:15 +0200
committerDamien Neil <dneil@google.com>2025-06-02 09:09:57 -0700
commit711ff943afc572c6b0e800aa1e73aaf336568c2d (patch)
tree6d34000642d7286d454da02ab304fceaa9d14f83
parente9d3b030ed6fe8380d9b0411ef06eff001769641 (diff)
downloadgo-711ff943afc572c6b0e800aa1e73aaf336568c2d.tar.xz
testing: add Output method to TB
Updates #59928 Fixes #73937 Change-Id: Ibf7ec61758edccd245841c3acc9096563b44fcd2 Reviewed-on: https://go-review.googlesource.com/c/go/+/677875 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Damien Neil <dneil@google.com>
-rw-r--r--api/go1.25.txt1
-rw-r--r--src/testing/testing.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/api/go1.25.txt b/api/go1.25.txt
index cb3900bf46..d50d19545f 100644
--- a/api/go1.25.txt
+++ b/api/go1.25.txt
@@ -101,6 +101,7 @@ pkg testing, method (*F) Output() io.Writer #59928
pkg testing, method (*T) Attr(string, string) #43936
pkg testing, method (*T) Output() io.Writer #59928
pkg testing, type TB interface, Attr(string, string) #43936
+pkg testing, type TB interface, Output() io.Writer #59928
pkg testing/fstest, method (MapFS) Lstat(string) (fs.FileInfo, error) #49580
pkg testing/fstest, method (MapFS) ReadLink(string) (string, error) #49580
pkg testing/synctest, func Test(*testing.T, func(*testing.T)) #67434
diff --git a/src/testing/testing.go b/src/testing/testing.go
index b5305f29cc..b2d4c0c938 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -900,6 +900,7 @@ type TB interface {
Skipped() bool
TempDir() string
Context() context.Context
+ Output() io.Writer
// A private method to prevent users implementing the
// interface and so future additions to it will not