]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.17: mention testing.[TB].Setenv methods
authorIan Lance Taylor <iant@golang.org>
Fri, 28 May 2021 00:33:01 +0000 (17:33 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 28 May 2021 18:36:54 +0000 (18:36 +0000)
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>
doc/go1.17.html

index 3e9587dbf7b7df9bdae2dbb4ffe33833a6800ab8..9d775e169ae07f40d98f8eaaa68e02cb89905d33 100644 (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 -->