mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
doc/go1.18: add docs for -count when benchmarking
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>
This commit is contained in:
parent
e5ba7d3abf
commit
085d6ff531
|
@ -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>
|
<dl id="testing"><dt><a href="/pkg/testing/">testing</a></dt>
|
||||||
<dd>
|
<dd>
|
||||||
<p><!-- CL 343883 -->
|
<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>
|
||||||
|
|
||||||
<p><!-- CL 356669 -->
|
<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>
|
</p>
|
||||||
</dd>
|
</dd>
|
||||||
</dl><!-- testing -->
|
</dl><!-- testing -->
|
||||||
|
|
Loading…
Reference in a new issue