]> Cypherpunks repositories - gostls13.git/commit
testing: add Get method for -test.v option
authorIan Lance Taylor <iant@golang.org>
Thu, 3 Nov 2022 20:22:37 +0000 (13:22 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 3 Nov 2022 23:43:04 +0000 (23:43 +0000)
commit3615eb16af57b832a3b6d957d86b84b656865a14
treed976d344abe1f72e79efd3681d38faabd4bff13e
parent69abfab979a22307bbd1b3f5f02a64349d16d3d5
testing: add Get method for -test.v option

There is existing code that calls flag.Lookup("test.v") and inspects
the value. That stopped working as of CL 443596. Make code like that
continue to work at least for the case where we aren't using
-test.v=test2json.

Change-Id: Idb30b149b48ee3987a201e349cf4d9bfe9ddee56
Reviewed-on: https://go-review.googlesource.com/c/go/+/447796
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/testing/flag_test.go [new file with mode: 0644]
src/testing/testing.go