]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.18: add docs for -count when benchmarking
authorJeremy Faller <jeremy@golang.org>
Thu, 2 Dec 2021 18:47:39 +0000 (13:47 -0500)
committerJeremy Faller <jeremy@golang.org>
Tue, 7 Dec 2021 17:59:54 +0000 (17:59 +0000)
CL 356669

Updates #47694

Change-Id: I49e0cdd3b34e81e9e44020a8eb1304d78249cd66
Reviewed-on: https://go-review.googlesource.com/c/go/+/368677
Trust: Jeremy Faller <jeremy@golang.org>
Run-TryBot: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.18.html

index 77c26bc2576589a1e5d24ea35728250abe7ad7cb..4a09cb677357d21ccb2cc5ed90b43e71a132d4dc 100644 (file)
@@ -782,11 +782,17 @@ Do not send CLs removing the interior tags from such phrases.
 <dl id="testing"><dt><a href="/pkg/testing/">testing</a></dt>
   <dd>
     <p><!-- CL 343883 -->
-      TODO: <a href="https://golang.org/cl/343883">https://golang.org/cl/343883</a>: increase alternation precedence
+      The precedence of <code>/</code> in the argument for <code>-run</code> and
+      <code>-bench</code> has been increased. <code>A/B|C/D</code> used to be
+      treated as <code>A/(B|C)/D</code> and is now treated as
+      <code>(A/B)/(C/D)</code>.
     </p>
 
     <p><!-- CL 356669 -->
-      TODO: <a href="https://golang.org/cl/356669">https://golang.org/cl/356669</a>: skip extra -count iterations if there are no tests
+      If the <code>-run</code> option does not select any tests, the
+      <code>-count</code> option is ignored. This could change the behavior of
+      existing tests in the unlikely case that a test changes the set of subtests
+      that are run each time the test function itself is run.
     </p>
   </dd>
 </dl><!-- testing -->