Skip to content

Commit 877688c

Browse files
committed
testing: add TB.Setenv
For #41260 and #46688. Change-Id: I6f42742cc3234a90003136ae8798a6b0e1291788 Reviewed-on: https://go-review.googlesource.com/c/go/+/326790 Trust: Russ Cox <[email protected]> Run-TryBot: Russ Cox <[email protected]> TryBot-Result: Go Bot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent ef8ae82 commit 877688c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

api/go1.17.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ pkg syscall (windows-amd64), type SysProcAttr struct, AdditionalInheritedHandles
181181
pkg syscall (windows-amd64), type SysProcAttr struct, ParentProcess Handle
182182
pkg testing, method (*B) Setenv(string, string)
183183
pkg testing, method (*T) Setenv(string, string)
184+
pkg testing, type TB interface, Setenv(string, string)
184185
pkg text/template/parse, const SkipFuncCheck = 2
185186
pkg text/template/parse, const SkipFuncCheck Mode
186187
pkg time, const Layout = "01/02 03:04:05PM '06 -0700"

src/testing/testing.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ type TB interface {
644644
Log(args ...interface{})
645645
Logf(format string, args ...interface{})
646646
Name() string
647+
Setenv(key, value string)
647648
Skip(args ...interface{})
648649
SkipNow()
649650
Skipf(format string, args ...interface{})

0 commit comments

Comments
 (0)