]> Cypherpunks repositories - gostls13.git/commitdiff
testing: add Output method to TB
authorMateusz Poliwczak <mpoliwczak34@gmail.com>
Sat, 31 May 2025 14:41:15 +0000 (16:41 +0200)
committerDamien Neil <dneil@google.com>
Mon, 2 Jun 2025 16:09:57 +0000 (09:09 -0700)
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>
api/go1.25.txt
src/testing/testing.go

index cb3900bf46c70a522d2459cd5523816a6a1433dc..d50d19545f163a6d424eb9e9847eab643078a34b 100644 (file)
@@ -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
index b5305f29cc2f16eb33f008379a36f9cb7658e90e..b2d4c0c938af813129a9e115a1af59265366c849 100644 (file)
@@ -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