From 711ff943afc572c6b0e800aa1e73aaf336568c2d Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Sat, 31 May 2025 16:41:15 +0200 Subject: [PATCH] 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 Reviewed-by: Jonathan Amsterdam Reviewed-by: Damien Neil --- api/go1.25.txt | 1 + src/testing/testing.go | 1 + 2 files changed, 2 insertions(+) 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