mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
bbda923592
commit
6624771c83
1 changed files with 8 additions and 0 deletions
|
|
@ -628,6 +628,14 @@ Do not send CLs removing the interior tags from such phrases.
|
||||||
<p><!-- CL 310033 -->
|
<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
|
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>
|
||||||
|
|
||||||
|
<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>
|
</dd>
|
||||||
</dl><!-- testing -->
|
</dl><!-- testing -->
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue