Skip to content

Commit 6624771

Browse files
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 <[email protected]> Reviewed-by: roger peppe <[email protected]>
1 parent bbda923 commit 6624771

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/go1.17.html

+8
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,14 @@ <h3 id="minor_library_changes">Minor changes to the library</h3>
628628
<p><!-- CL 310033 -->
629629
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
630630
</p>
631+
632+
<p><!-- CL 260577 -->
633+
The new
634+
<a href="/pkg/testing/#T.Setenv"><code>T.Setenv</code></a>
635+
and <a href="/pkg/testing/#B.Setenv"><code>B.Setenv</code></a>
636+
methods support setting an environment variable for the duration
637+
of the test or benchmark.
638+
</p>
631639
</dd>
632640
</dl><!-- testing -->
633641

0 commit comments

Comments
 (0)