1
0
mirror of https://github.com/golang/go synced 2024-11-11 19:21:37 -07:00

doc/go1.17: mention testing.[TB].Setenv methods

For #41260
For #44513

Change-Id: I47ac0c751dafeb05abfe66fdf77938774164915f
Reviewed-on: https://go-review.googlesource.com/c/go/+/323353
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: roger peppe <rogpeppe@gmail.com>
This commit is contained in:
Ian Lance Taylor 2021-05-27 17:33:01 -07:00
parent bbda923592
commit 6624771c83

View File

@ -628,6 +628,14 @@ Do not send CLs removing the interior tags from such phrases.
<p><!-- CL 310033 -->
TODO: <a href="https://golang.org/cl/310033">https://golang.org/cl/310033</a>: add -shuffle=off|on|N to alter the execution order of tests and benchmarks
</p>
<p><!-- CL 260577 -->
The new
<a href="/pkg/testing/#T.Setenv"><code>T.Setenv</code></a>
and <a href="/pkg/testing/#B.Setenv"><code>B.Setenv</code></a>
methods support setting an environment variable for the duration
of the test or benchmark.
</p>
</dd>
</dl><!-- testing -->