]> Cypherpunks.ru repositories - gostls13.git/commitdiff
testing: add TB.Setenv
authorRuss Cox <rsc@golang.org>
Thu, 10 Jun 2021 19:17:17 +0000 (15:17 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 1 Jul 2021 18:35:33 +0000 (18:35 +0000)
For #41260 and #46688.

Change-Id: I6f42742cc3234a90003136ae8798a6b0e1291788
Reviewed-on: https://go-review.googlesource.com/c/go/+/326790
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
api/go1.17.txt
src/testing/testing.go

index 8e4c0f5624b93dff090a316edf4184f74f691455..3d0a464fec5aaaa5dff0bad86506c5f5ec2b6c14 100644 (file)
@@ -181,6 +181,7 @@ pkg syscall (windows-amd64), type SysProcAttr struct, AdditionalInheritedHandles
 pkg syscall (windows-amd64), type SysProcAttr struct, ParentProcess Handle
 pkg testing, method (*B) Setenv(string, string)
 pkg testing, method (*T) Setenv(string, string)
+pkg testing, type TB interface, Setenv(string, string)
 pkg text/template/parse, const SkipFuncCheck = 2
 pkg text/template/parse, const SkipFuncCheck Mode
 pkg time, const Layout = "01/02 03:04:05PM '06 -0700"
index fdf57a3953505c1e52ce05dda8afe23213636578..eeee0aac1729a94114d56caab133bab02c949ad6 100644 (file)
@@ -644,6 +644,7 @@ type TB interface {
        Log(args ...interface{})
        Logf(format string, args ...interface{})
        Name() string
+       Setenv(key, value string)
        Skip(args ...interface{})
        SkipNow()
        Skipf(format string, args ...interface{})